mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-05 10:17:37 +00:00
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
This commit is contained in:
parent
837a600a90
commit
bc9d89e6a2
@ -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
|
||||
/// @{
|
||||
|
Loading…
Reference in New Issue
Block a user