31 lines · c
1//===- tools/dsymutil/CFBundle.h - CFBundle helper --------------*- C++ -*-===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLVM_TOOLS_DSYMUTIL_CFBUNDLE_H10#define LLVM_TOOLS_DSYMUTIL_CFBUNDLE_H11 12#include "llvm/ADT/StringRef.h"13#include <string>14 15namespace llvm {16namespace dsymutil {17 18struct CFBundleInfo {19 std::string VersionStr = "1";20 std::string ShortVersionStr = "1.0";21 std::string IDStr;22 bool OmitShortVersion() const { return ShortVersionStr.empty(); }23};24 25CFBundleInfo getBundleInfo(llvm::StringRef ExePath);26 27} // end namespace dsymutil28} // end namespace llvm29 30#endif31