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-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_TOOLS_DSYMUTIL_CFBUNDLE_H
10 #define LLVM_TOOLS_DSYMUTIL_CFBUNDLE_H
11 
12 #include "llvm/ADT/StringRef.h"
13 #include <string>
14 
15 namespace llvm {
16 namespace dsymutil {
17 
18 struct CFBundleInfo {
19   std::string VersionStr = "1";
20   std::string ShortVersionStr = "1.0";
21   std::string IDStr;
OmitShortVersionCFBundleInfo22   bool OmitShortVersion() const { return ShortVersionStr.empty(); }
23 };
24 
25 CFBundleInfo getBundleInfo(llvm::StringRef ExePath);
26 
27 } // end namespace dsymutil
28 } // end namespace llvm
29 
30 #endif
31