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