forked from OSchip/llvm-project
Replace GlobalScopeAsm[GlobalScopeAsm.size()-1] with GlobalScopeAsm.back(), NFC.
llvm-svn: 262775
This commit is contained in:
parent
5c61d11a6d
commit
ce608690e1
|
@ -262,8 +262,7 @@ public:
|
||||||
/// A trailing newline is added if the input doesn't have one.
|
/// A trailing newline is added if the input doesn't have one.
|
||||||
void setModuleInlineAsm(StringRef Asm) {
|
void setModuleInlineAsm(StringRef Asm) {
|
||||||
GlobalScopeAsm = Asm;
|
GlobalScopeAsm = Asm;
|
||||||
if (!GlobalScopeAsm.empty() &&
|
if (!GlobalScopeAsm.empty() && GlobalScopeAsm.back() != '\n')
|
||||||
GlobalScopeAsm[GlobalScopeAsm.size()-1] != '\n')
|
|
||||||
GlobalScopeAsm += '\n';
|
GlobalScopeAsm += '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -271,8 +270,7 @@ public:
|
||||||
/// A trailing newline is added if the input doesn't have one.
|
/// A trailing newline is added if the input doesn't have one.
|
||||||
void appendModuleInlineAsm(StringRef Asm) {
|
void appendModuleInlineAsm(StringRef Asm) {
|
||||||
GlobalScopeAsm += Asm;
|
GlobalScopeAsm += Asm;
|
||||||
if (!GlobalScopeAsm.empty() &&
|
if (!GlobalScopeAsm.empty() && GlobalScopeAsm.back() != '\n')
|
||||||
GlobalScopeAsm[GlobalScopeAsm.size()-1] != '\n')
|
|
||||||
GlobalScopeAsm += '\n';
|
GlobalScopeAsm += '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue