This command line option is only used in one place. Move it there and
authorEric Christopher <echristo@gmail.com>
Wed, 21 May 2014 00:20:01 +0000 (00:20 +0000)
committerEric Christopher <echristo@gmail.com>
Wed, 21 May 2014 00:20:01 +0000 (00:20 +0000)
rename it to something more descriptive.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209263 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCTargetOptionsCommandFlags.h
test/MC/MachO/temp-labels.s
tools/llvm-mc/llvm-mc.cpp

index 55ac14215724efaa099f15eddd238000751cd210..24e683f61723ff66c1e39394381d6e85b053b2a3 100644 (file)
@@ -40,8 +40,6 @@ cl::opt<bool> EnableDwarfDirectory(
 cl::opt<bool> NoExecStack("mc-no-exec-stack",
                           cl::desc("File doesn't need an exec stack"));
 
-cl::opt<bool> SaveTempLabels("L", cl::desc("Don't discard temporary labels"));
-
 cl::opt<bool> ShowMCEncoding("show-mc-encoding", cl::Hidden,
                              cl::desc("Show encoding in .s output"));
 cl::opt<bool> ShowMCInst("show-mc-inst", cl::Hidden,
@@ -57,7 +55,6 @@ static inline MCTargetOptions InitMCTargetOptionsFromFlags() {
   Options.MCRelaxAll = RelaxAll;
   Options.MCUseDwarfDirectory = EnableDwarfDirectory;
   Options.MCNoExecStack = NoExecStack;
-  Options.MCSaveTempLabels = SaveTempLabels;
   Options.ShowMCEncoding = ShowMCEncoding;
   Options.ShowMCInst = ShowMCInst;
   Options.AsmVerbose = AsmVerbose;
index b7382b7d2c8283070560d82c37a13271c7163c61..ac0f6203aef1bcfe16a766b60f050496ff7793c1 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -L -o - | macho-dump --dump-section-data | FileCheck %s
+// RUN: llvm-mc -triple x86_64-apple-darwin10 %s -filetype=obj -save-temp-labels -o - | macho-dump --dump-section-data | FileCheck %s
 
 // CHECK:   # Load Command 1
 // CHECK:  (('command', 2)
index e87f1eef2829429d6ea0b62472104734bf0fe62e..02dcfcd2dd0bcae2d7803abdbe620161585c3d61 100644 (file)
@@ -156,6 +156,9 @@ static cl::opt<std::string>
 MainFileName("main-file-name",
              cl::desc("Specifies the name we should consider the input file"));
 
+static cl::opt<bool> SaveTempLabels("save-temp-labels",
+                                    cl::desc("Don't discard temporary labels"));
+
 enum ActionType {
   AC_AsLex,
   AC_Assemble,