diff options
author | Chris Lattner <sabre@nondot.org> | 2006-01-23 23:02:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-01-23 23:02:28 +0000 |
commit | 49ebb90bd0d5d36011a4108114beeed035622647 (patch) | |
tree | 0187a8fd8418ec93118e98db31881dc13c4a89de /include/llvm/Module.h | |
parent | fabd5ba250006e328d9d62962e5f9094ec4306c1 (diff) |
Add global scope asm support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25555 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Module.h')
-rw-r--r-- | include/llvm/Module.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h index d576911a3f..d8f6a455cc 100644 --- a/include/llvm/Module.h +++ b/include/llvm/Module.h @@ -70,10 +70,10 @@ private: GlobalListType GlobalList; // The Global Variables in the module FunctionListType FunctionList; // The Functions in the module LibraryListType LibraryList; // The Libraries needed by the module + std::string GlobalScopeAsm; // Inline Asm at global scope. SymbolTable *SymTab; // Symbol Table for the module std::string ModuleID; // Human readable identifier for the module std::string TargetTriple; // Platform target triple Module compiled on - Endianness Endian; // Endianness assumed in the module PointerSize PtrSize; // Pointer size assumed in the module @@ -97,6 +97,10 @@ public: PointerSize getPointerSize() const { return PtrSize; } void setPointerSize(PointerSize PS) { PtrSize = PS; } + // Access to any module-scope inline asm blocks. + const std::string &getInlineAsm() const { return GlobalScopeAsm; } + void setInlineAsm(const std::string &Asm) { GlobalScopeAsm = Asm; } + //===--------------------------------------------------------------------===// // Methods for easy access to the functions in the module. // |