diff options
-rw-r--r-- | clang/include/clang/AST/Attr.h | 1 | ||||
-rw-r--r-- | clang/include/module.modulemap | 7 | ||||
-rw-r--r-- | clang/utils/TableGen/ClangAttrEmitter.cpp | 1 | ||||
-rw-r--r-- | llvm/include/llvm/DebugInfo/DWARF/DWARFTypePrinter.h | 1 | ||||
-rw-r--r-- | llvm/include/llvm/IR/NVVMIntrinsicFlags.h | 2 | ||||
-rw-r--r-- | llvm/include/llvm/SandboxIR/Type.h | 7 | ||||
-rw-r--r-- | llvm/include/llvm/Support/Memory.h | 1 | ||||
-rw-r--r-- | llvm/include/llvm/TargetParser/AArch64TargetParser.h | 1 | ||||
-rw-r--r-- | llvm/include/module.modulemap | 10 | ||||
-rw-r--r-- | llvm/lib/SandboxIR/Type.cpp | 9 |
10 files changed, 33 insertions, 7 deletions
diff --git a/clang/include/clang/AST/Attr.h b/clang/include/clang/AST/Attr.h index 725498e..3365ebe 100644 --- a/clang/include/clang/AST/Attr.h +++ b/clang/include/clang/AST/Attr.h @@ -24,6 +24,7 @@ #include "clang/Basic/OpenMPKinds.h" #include "clang/Basic/Sanitizers.h" #include "clang/Basic/SourceLocation.h" +#include "clang/Support/Compiler.h" #include "llvm/Frontend/HLSL/HLSLResource.h" #include "llvm/Support/CodeGen.h" #include "llvm/Support/ErrorHandling.h" diff --git a/clang/include/module.modulemap b/clang/include/module.modulemap index b399f0b..5bb9f6b 100644 --- a/clang/include/module.modulemap +++ b/clang/include/module.modulemap @@ -115,7 +115,7 @@ module Clang_Diagnostics { module Driver { header "clang/Driver/DriverDiagnostic.h" export * } module Frontend { header "clang/Frontend/FrontendDiagnostic.h" export * } module Lex { header "clang/Lex/LexDiagnostic.h" export * } - module Parse { header "clang/Parse/ParseDiagnostic.h" export * } + module Parse { header "clang/Basic/DiagnosticParse.h" export * } module Serialization { header "clang/Serialization/SerializationDiagnostic.h" export * } module Refactoring { header "clang/Tooling/Refactoring/RefactoringDiagnostic.h" export * } } @@ -183,9 +183,14 @@ module Clang_StaticAnalyzer_Frontend { module * { export * } } +module Clang_Support { requires cplusplus umbrella "clang/Support" module * { export * } } + module Clang_Testing { requires cplusplus umbrella "clang/Testing" + + textual header "clang/Testing/TestLanguage.def" + module * { export * } } diff --git a/clang/utils/TableGen/ClangAttrEmitter.cpp b/clang/utils/TableGen/ClangAttrEmitter.cpp index 630beae..cc6a8ea 100644 --- a/clang/utils/TableGen/ClangAttrEmitter.cpp +++ b/clang/utils/TableGen/ClangAttrEmitter.cpp @@ -3183,7 +3183,6 @@ void clang::EmitClangAttrClass(const RecordKeeper &Records, raw_ostream &OS) { OS << "#ifndef LLVM_CLANG_ATTR_CLASSES_INC\n"; OS << "#define LLVM_CLANG_ATTR_CLASSES_INC\n"; - OS << "#include \"clang/Support/Compiler.h\"\n\n"; emitAttributes(Records, OS, true); diff --git a/llvm/include/llvm/DebugInfo/DWARF/DWARFTypePrinter.h b/llvm/include/llvm/DebugInfo/DWARF/DWARFTypePrinter.h index 3c936b9..bd25f6c 100644 --- a/llvm/include/llvm/DebugInfo/DWARF/DWARFTypePrinter.h +++ b/llvm/include/llvm/DebugInfo/DWARF/DWARFTypePrinter.h @@ -9,6 +9,7 @@ #ifndef LLVM_DEBUGINFO_DWARF_DWARFTYPEPRINTER_H #define LLVM_DEBUGINFO_DWARF_DWARFTYPEPRINTER_H +#include "llvm/ADT/StringExtras.h" #include "llvm/ADT/StringRef.h" #include "llvm/BinaryFormat/Dwarf.h" #include "llvm/Support/Error.h" diff --git a/llvm/include/llvm/IR/NVVMIntrinsicFlags.h b/llvm/include/llvm/IR/NVVMIntrinsicFlags.h index 43dde42..dfb6e85 100644 --- a/llvm/include/llvm/IR/NVVMIntrinsicFlags.h +++ b/llvm/include/llvm/IR/NVVMIntrinsicFlags.h @@ -15,6 +15,8 @@ #ifndef LLVM_IR_NVVMINTRINSICFLAGS_H #define LLVM_IR_NVVMINTRINSICFLAGS_H +#include <stdint.h> + namespace llvm { namespace nvvm { diff --git a/llvm/include/llvm/SandboxIR/Type.h b/llvm/include/llvm/SandboxIR/Type.h index 9d1db11..3218b99 100644 --- a/llvm/include/llvm/SandboxIR/Type.h +++ b/llvm/include/llvm/SandboxIR/Type.h @@ -283,11 +283,8 @@ public: } #ifndef NDEBUG - void dumpOS(raw_ostream &OS) { LLVMTy->print(OS); } - LLVM_DUMP_METHOD void dump() { - dumpOS(dbgs()); - dbgs() << "\n"; - } + void dumpOS(raw_ostream &OS); + LLVM_DUMP_METHOD void dump(); #endif // NDEBUG }; diff --git a/llvm/include/llvm/Support/Memory.h b/llvm/include/llvm/Support/Memory.h index c02a3cc..a587f2a 100644 --- a/llvm/include/llvm/Support/Memory.h +++ b/llvm/include/llvm/Support/Memory.h @@ -15,6 +15,7 @@ #include "llvm/Support/DataTypes.h" #include <system_error> +#include <utility> namespace llvm { diff --git a/llvm/include/llvm/TargetParser/AArch64TargetParser.h b/llvm/include/llvm/TargetParser/AArch64TargetParser.h index 2dd8469..ac8006d6 100644 --- a/llvm/include/llvm/TargetParser/AArch64TargetParser.h +++ b/llvm/include/llvm/TargetParser/AArch64TargetParser.h @@ -16,6 +16,7 @@ #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/Bitset.h" +#include "llvm/ADT/StringExtras.h" #include "llvm/ADT/StringMap.h" #include "llvm/ADT/StringRef.h" #include "llvm/Support/VersionTuple.h" diff --git a/llvm/include/module.modulemap b/llvm/include/module.modulemap index b00da6d..6beb0e0 100644 --- a/llvm/include/module.modulemap +++ b/llvm/include/module.modulemap @@ -346,6 +346,7 @@ extern module LLVM_Extern_Utils_DataTypes "module.extern.modulemap" // TargetParser module before building the TargetParser module itself. module TargetParserGen { module AArch64TargetParserDef { + textual header "llvm/TargetParser/AArch64CPUFeatures.inc" header "llvm/TargetParser/AArch64TargetParser.h" extern module LLVM_Extern_TargetParser_Gen "module.extern.modulemap" export * @@ -426,3 +427,12 @@ module LLVM_WindowsManifest { umbrella "llvm/WindowsManifest" module * { export * } } + +module LLVM_SandboxIR { + requires cplusplus + + umbrella "llvm/SandboxIR" + module * { export * } + + textual header "llvm/SandboxIR/Values.def" +} diff --git a/llvm/lib/SandboxIR/Type.cpp b/llvm/lib/SandboxIR/Type.cpp index 7bb788e..9ecff5f 100644 --- a/llvm/lib/SandboxIR/Type.cpp +++ b/llvm/lib/SandboxIR/Type.cpp @@ -36,6 +36,15 @@ Type *Type::getDoubleTy(Context &Ctx) { Type *Type::getFloatTy(Context &Ctx) { return Ctx.getType(llvm::Type::getFloatTy(Ctx.LLVMCtx)); } + +#ifndef NDEBUG +void Type::dumpOS(raw_ostream &OS) { LLVMTy->print(OS); } +void Type::dump() { + dumpOS(dbgs()); + dbgs() << "\n"; +} +#endif + PointerType *PointerType::get(Type *ElementType, unsigned AddressSpace) { return cast<PointerType>(ElementType->getContext().getType( llvm::PointerType::get(ElementType->LLVMTy, AddressSpace))); |