summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2015-03-13 19:05:24 +0000
committerJoerg Sonnenberger <joerg@bec.de>2015-03-13 19:05:24 +0000
commit2ecca1424fc06e72d25d331e517e70181cdadeea (patch)
tree1c5616480c45f493ea5eda9c7f25436960e09b61
parent6474721c10394e88fa631df644563da2d6ca55c0 (diff)
downloadbcm5719-llvm-2ecca1424fc06e72d25d331e517e70181cdadeea.tar.gz
bcm5719-llvm-2ecca1424fc06e72d25d331e517e70181cdadeea.zip
Improve wording of newline handling.
llvm-svn: 232195
-rw-r--r--llvm/include/llvm/IR/Module.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/include/llvm/IR/Module.h b/llvm/include/llvm/IR/Module.h
index 932acb52b5e..698e8747495 100644
--- a/llvm/include/llvm/IR/Module.h
+++ b/llvm/include/llvm/IR/Module.h
@@ -294,6 +294,7 @@ public:
void setTargetTriple(StringRef T) { TargetTriple = T; }
/// Set the module-scope inline assembly blocks.
+ /// A trailing newline is added if the input doesn't have one.
void setModuleInlineAsm(StringRef Asm) {
GlobalScopeAsm = Asm;
if (!GlobalScopeAsm.empty() &&
@@ -301,8 +302,8 @@ public:
GlobalScopeAsm += '\n';
}
- /// Append to the module-scope inline assembly blocks, automatically inserting
- /// a separating newline if necessary.
+ /// Append to the module-scope inline assembly blocks.
+ /// A trailing newline is added if the input doesn't have one.
void appendModuleInlineAsm(StringRef Asm) {
GlobalScopeAsm += Asm;
if (!GlobalScopeAsm.empty() &&
OpenPOWER on IntegriCloud