aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Module.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h
index 8cd35f25be..9bd02ec50f 100644
--- a/include/llvm/Module.h
+++ b/include/llvm/Module.h
@@ -174,6 +174,13 @@ public:
/// 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
/// @{