diff options
author | Cyndy Ishida <cyndy_ishida@apple.com> | 2024-02-12 16:15:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 16:15:21 -0800 |
commit | 3a080a0195ed21b8e12f825cfa00c8fa79f851a6 (patch) | |
tree | fd9e62afbb90a83982c0e89f0887374a16012045 /llvm/lib/TextAPI/TextAPIContext.h | |
parent | 644ac2a018c9bf83c9ba256074e552ad7f1fe941 (diff) | |
download | llvm-3a080a0195ed21b8e12f825cfa00c8fa79f851a6.zip llvm-3a080a0195ed21b8e12f825cfa00c8fa79f851a6.tar.gz llvm-3a080a0195ed21b8e12f825cfa00c8fa79f851a6.tar.bz2 |
[TextAPI] Refactor BinaryAttrs to InterfaceFile assignment (#81551)
Create a helper method for this operation, so it can be reused in
multiple places.
Additonally move FileType enum into its own header to avoid include
cycles.
Diffstat (limited to 'llvm/lib/TextAPI/TextAPIContext.h')
-rw-r--r-- | llvm/lib/TextAPI/TextAPIContext.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/TextAPI/TextAPIContext.h b/llvm/lib/TextAPI/TextAPIContext.h index 217d1f5..3151db7 100644 --- a/llvm/lib/TextAPI/TextAPIContext.h +++ b/llvm/lib/TextAPI/TextAPIContext.h @@ -13,13 +13,12 @@ #ifndef LLVM_TEXTAPI_MACHO_CONTEXT_H #define LLVM_TEXTAPI_MACHO_CONTEXT_H +#include "llvm/TextAPI/FileTypes.h" #include <string> namespace llvm { namespace MachO { -enum FileType : unsigned; - struct TextAPIContext { std::string ErrorMessage; std::string Path; |