[llvm-readobj] - Remove unwrapOrError(ErrorOr<T> EO) helper.
[llvm-complete.git] / tools / dsymutil / CFBundle.h
blob103db035164323ef20f6f8b61e4dc979d8fc51b6
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 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_TOOLS_DSYMUTIL_CFBUNDLE_H
10 #define LLVM_TOOLS_DSYMUTIL_CFBUNDLE_H
12 #include "llvm/ADT/StringRef.h"
13 #include <string>
15 namespace llvm {
16 namespace dsymutil {
18 struct CFBundleInfo {
19 std::string VersionStr = "1";
20 std::string ShortVersionStr = "1.0";
21 std::string IDStr;
22 bool OmitShortVersion() const { return ShortVersionStr.empty(); }
25 CFBundleInfo getBundleInfo(llvm::StringRef ExePath);
27 } // end namespace dsymutil
28 } // end namespace llvm
30 #endif