From bc9d89e6a2d685de7db90013a37e1a60a4ef38de Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 26 Jun 2007 00:38:49 +0000 Subject: [PATCH] Add a convenince member function for appending strings to a module's module-level asm string data. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37726 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Module.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/llvm/Module.h b/include/llvm/Module.h index 8cd35f25bec..9bd02ec50ff 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 /// @{ -- 2.34.1