[llvm] fe955e6 - TargetPassConfig: const char * -> const char []
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 26 11:28:24 PST 2019
Author: Fangrui Song
Date: 2019-11-26T11:25:00-08:00
New Revision: fe955e6c70e8c26c605751da239a54cd31f8beee
URL: https://github.com/llvm/llvm-project/commit/fe955e6c70e8c26c605751da239a54cd31f8beee
DIFF: https://github.com/llvm/llvm-project/commit/fe955e6c70e8c26c605751da239a54cd31f8beee.diff
LOG: TargetPassConfig: const char * -> const char []
The latter has better codegen in non-optimized builds, which do not run
ipsccp.
Added:
Modified:
llvm/lib/CodeGen/TargetPassConfig.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp
index 7b547d41fb60..41cb511ad9b4 100644
--- a/llvm/lib/CodeGen/TargetPassConfig.cpp
+++ b/llvm/lib/CodeGen/TargetPassConfig.cpp
@@ -179,10 +179,10 @@ static cl::opt<CFLAAType> UseCFLAA(
/// Option names for limiting the codegen pipeline.
/// Those are used in error reporting and we didn't want
/// to duplicate their names all over the place.
-static const char *StartAfterOptName = "start-after";
-static const char *StartBeforeOptName = "start-before";
-static const char *StopAfterOptName = "stop-after";
-static const char *StopBeforeOptName = "stop-before";
+static const char StartAfterOptName[] = "start-after";
+static const char StartBeforeOptName[] = "start-before";
+static const char StopAfterOptName[] = "stop-after";
+static const char StopBeforeOptName[] = "stop-before";
static cl::opt<std::string>
StartAfterOpt(StringRef(StartAfterOptName),
More information about the llvm-commits
mailing list