[lld] r266667 - Remove redundant curly braces.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 18 14:00:43 PDT 2016
Author: ruiu
Date: Mon Apr 18 16:00:43 2016
New Revision: 266667
URL: http://llvm.org/viewvc/llvm-project?rev=266667&view=rev
Log:
Remove redundant curly braces.
Modified:
lld/trunk/ELF/LinkerScript.cpp
Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=266667&r1=266666&r2=266667&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Mon Apr 18 16:00:43 2016
@@ -113,7 +113,7 @@ void LinkerScript::assignAddresses(
StringRef Name = Sec->getName();
auto I = std::find(SectionOrder.begin(), SectionOrder.end(), Name);
if (I == SectionOrder.end())
- Locations.push_back({Command::Section, {}, {Name}});
+ Locations.push_back({Command::Section, {}, Name});
}
// Assign addresses as instructed by linker script SECTIONS sub-commands.
@@ -400,7 +400,7 @@ void ScriptParser::readSectionPatterns(S
void ScriptParser::readLocationCounterValue() {
expect(".");
expect("=");
- Script->Locations.push_back({Command::Expr, {}, {}});
+ Script->Locations.push_back({Command::Expr, {}, ""});
LocationNode &Node = Script->Locations.back();
while (!Error) {
StringRef Tok = next();
@@ -415,7 +415,7 @@ void ScriptParser::readLocationCounterVa
void ScriptParser::readOutputSectionDescription() {
StringRef OutSec = next();
Script->SectionOrder.push_back(OutSec);
- Script->Locations.push_back({Command::Section, {}, {OutSec}});
+ Script->Locations.push_back({Command::Section, {}, OutSec});
expect(":");
expect("{");
while (!Error && !skip("}")) {
More information about the llvm-commits
mailing list