[llvm-commits] [llvm-gcc-4.2] r58735 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Bill Wendling
isanbard at gmail.com
Tue Nov 4 16:03:20 PST 2008
Author: void
Date: Tue Nov 4 18:03:20 2008
New Revision: 58735
URL: http://llvm.org/viewvc/llvm-project?rev=58735&view=rev
Log:
Simplification to get rid of string concatenation.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp?rev=58735&r1=58734&r2=58735&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Tue Nov 4 18:03:20 2008
@@ -167,12 +167,12 @@
}
if (flag_stack_protect > 0) {
- std::string Arg("--enable-stack-protector=");
+ std::string Arg;
if (flag_stack_protect == 1)
- Arg += "some";
+ Arg = "--enable-stack-protector=some";
else
- Arg += "all";
+ Arg = "--enable-stack-protector=all";
ArgStrings.push_back(Arg);
Arg = "--stack-protector-buffer-size=" +
More information about the llvm-commits
mailing list