[llvm-commits] CVS: llvm/include/llvm/Module.h
Dan Gohman
djg at cray.com
Mon Jun 25 17:39:11 PDT 2007
Changes in directory llvm/include/llvm:
Module.h updated: 1.89 -> 1.90
---
Log message:
Add a convenince member function for appending strings to a module's
module-level asm string data.
---
Diffs of the changes: (+7 -0)
Module.h | 7 +++++++
1 files changed, 7 insertions(+)
Index: llvm/include/llvm/Module.h
diff -u llvm/include/llvm/Module.h:1.89 llvm/include/llvm/Module.h:1.90
--- llvm/include/llvm/Module.h:1.89 Wed Apr 25 09:27:10 2007
+++ llvm/include/llvm/Module.h Mon Jun 25 19:38:49 2007
@@ -174,6 +174,13 @@
/// Set the module-scope inline assembly blocks.
void setModuleInlineAsm(const std::string &Asm) { GlobalScopeAsm = Asm; }
+ /// Append to the module-scope inline assembly blocks, automatically
+ /// appending a newline to the end.
+ void appendModuleInlineAsm(const std::string &Asm) {
+ GlobalScopeAsm += Asm;
+ GlobalScopeAsm += '\n';
+ }
+
/// @}
/// @name Function Accessors
/// @{
More information about the llvm-commits
mailing list