[llvm-commits] CVS: llvm/include/llvm/Module.h

Chris Lattner lattner at cs.uiuc.edu
Mon Jan 23 15:02:40 PST 2006



Changes in directory llvm/include/llvm:

Module.h updated: 1.66 -> 1.67
---
Log message:

Add global scope asm support


---
Diffs of the changes:  (+5 -1)

 Module.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)


Index: llvm/include/llvm/Module.h
diff -u llvm/include/llvm/Module.h:1.66 llvm/include/llvm/Module.h:1.67
--- llvm/include/llvm/Module.h:1.66	Sat Jan  7 20:32:52 2006
+++ llvm/include/llvm/Module.h	Mon Jan 23 17:02:28 2006
@@ -70,10 +70,10 @@
   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 @@
   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.
   //






More information about the llvm-commits mailing list