diff options
Diffstat (limited to 'llvm/include')
-rw-r--r-- | llvm/include/llvm/InlineAsm.h | 6 | ||||
-rw-r--r-- | llvm/include/llvm/LinkAllVMCore.h | 2 | ||||
-rw-r--r-- | llvm/include/llvm/Support/Mangler.h | 4 |
3 files changed, 11 insertions, 1 deletions
diff --git a/llvm/include/llvm/InlineAsm.h b/llvm/include/llvm/InlineAsm.h index 97774986feb..6e7aab1cb03 100644 --- a/llvm/include/llvm/InlineAsm.h +++ b/llvm/include/llvm/InlineAsm.h @@ -17,6 +17,7 @@ #define LLVM_INLINEASM_H #include "llvm/Value.h" +#include "llvm/Support/IncludeFile.h" #include <vector> namespace llvm { @@ -35,7 +36,7 @@ class InlineAsm : public Value { InlineAsm(const FunctionType *Ty, const std::string &AsmString, const std::string &Constraints, bool hasSideEffects); - ~InlineAsm(); + virtual ~InlineAsm(); public: /// InlineAsm::get - Return the the specified uniqued inline asm string. @@ -128,4 +129,7 @@ public: } // End llvm namespace +// Make sure the InlineAsm.cpp file is linked when this one is #included. +FORCE_DEFINING_FILE_TO_BE_LINKED(InlineAsm) + #endif diff --git a/llvm/include/llvm/LinkAllVMCore.h b/llvm/include/llvm/LinkAllVMCore.h index fa7c39995b6..d0366ebe1e1 100644 --- a/llvm/include/llvm/LinkAllVMCore.h +++ b/llvm/include/llvm/LinkAllVMCore.h @@ -17,9 +17,11 @@ #define LLVM_LINKALLVMCORE_H #include "llvm/Support/IncludeFile.h" +#include "llvm/Support/Mangler.h" #include "llvm/Module.h" #include "llvm/Instructions.h" #include "llvm/IntrinsicInst.h" +#include "llvm/InlineAsm.h" #include "llvm/Analysis/Verifier.h" namespace { diff --git a/llvm/include/llvm/Support/Mangler.h b/llvm/include/llvm/Support/Mangler.h index 30a48a82ae4..50e49ff8a55 100644 --- a/llvm/include/llvm/Support/Mangler.h +++ b/llvm/include/llvm/Support/Mangler.h @@ -14,6 +14,7 @@ #ifndef LLVM_SUPPORT_MANGLER_H #define LLVM_SUPPORT_MANGLER_H +#include "llvm/Support/IncludeFile.h" #include <map> #include <set> #include <string> @@ -103,4 +104,7 @@ private: } // End llvm namespace +// Force the Mangler.cpp file to be linked when this header is #included +FORCE_DEFINING_FILE_TO_BE_LINKED(Mangler) + #endif // LLVM_SUPPORT_MANGLER_H |