Don't pass target name into TargetData anymore, it is never used or needed.
authorChris Lattner <sabre@nondot.org>
Fri, 16 Jun 2006 18:23:49 +0000 (18:23 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 16 Jun 2006 18:23:49 +0000 (18:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28831 91177308-0d34-0410-b5e6-96231b3b80d8

projects/Stacker/lib/compiler/StackerCompiler.cpp
tools/analyze/analyze.cpp
tools/bugpoint/ExtractFunction.cpp
tools/bugpoint/OptimizerDriver.cpp
tools/gccas/gccas.cpp
tools/gccld/GenerateCode.cpp
tools/llvm-extract/llvm-extract.cpp
tools/llvm-ld/Optimize.cpp
tools/opt/opt.cpp

index 339c8afb3cd21c1652dafaf185983a2fbed90202..b9e41a889ce7edbe06b4e4d81dbe23d53a484727 100644 (file)
@@ -264,7 +264,7 @@ StackerCompiler::compile(
         // Set up a pass manager
         PassManager Passes;
         // Add in the passes we want to execute
-        Passes.add(new TargetData("stkrc",TheModule));
+        Passes.add(new TargetData(TheModule));
         // Verify we start with valid
         Passes.add(createVerifierPass());
 
index c3411ab627e26722a6bd93f578e40924b7067c84..e6b2be5adab93800b80ec51799fc6c9a400c56cc 100644 (file)
@@ -148,7 +148,7 @@ int main(int argc, char **argv) {
     PassManager Passes;
 
     // Add an appropriate TargetData instance for this module...
-    Passes.add(new TargetData("analyze", CurMod));
+    Passes.add(new TargetData(CurMod));
 
     // Make sure the input LLVM is well formed.
     if (!NoVerify)
index afc1c64b7c41c02b330c84baa019ecfe377baf5e..2b12519ff30620296f7c85f540656b87dd52b2ba 100644 (file)
@@ -80,7 +80,7 @@ Module *BugDriver::deleteInstructionFromProgram(const Instruction *I,
   // Spiff up the output a little bit.
   PassManager Passes;
   // Make sure that the appropriate target data is always used...
-  Passes.add(new TargetData("bugpoint", Result));
+  Passes.add(new TargetData(Result));
 
   /// FIXME: If this used runPasses() like the methods below, we could get rid
   /// of the -disable-* options!
index 6caced779b53d48234a75674a9875276056cf4da..df4f470da2b80cbad8277eac78f8f77e5e0ccd64 100644 (file)
@@ -104,7 +104,7 @@ int BugDriver::runPassesAsChild(const std::vector<const PassInfo*> &Passes) {
 
   PassManager PM;
   // Make sure that the appropriate target data is always used...
-  PM.add(new TargetData("bugpoint", Program));
+  PM.add(new TargetData(Program));
 
   for (unsigned i = 0, e = Passes.size(); i != e; ++i) {
     if (Passes[i]->getNormalCtor())
index 2a45779a4f6229775b154fdf99cf1990d84b9ac4..0b7d05a8d157f6fb0039c7866baea8d8c893aadc 100644 (file)
@@ -192,7 +192,7 @@ int main(int argc, char **argv) {
     PassManager Passes;
 
     // Add an appropriate TargetData instance for this module...
-    Passes.add(new TargetData("gccas", M.get()));
+    Passes.add(new TargetData(M.get()));
 
     // Add all of the transformation passes to the pass manager to do the cleanup
     // and optimization of the GCC output.
index 967fbf0b803e048df4b24eb316ce3ac353e08f77..fc674f7088d79da93a3c0883a2f4efe47d50f819 100644 (file)
@@ -207,7 +207,7 @@ int llvm::GenerateBytecode(Module *M, int StripLevel, bool Internalize,
   if (Verify) Passes.add(createVerifierPass());
 
   // Add an appropriate TargetData instance for this module...
-  addPass(Passes, new TargetData("gccld", M));
+  addPass(Passes, new TargetData(M));
 
   // Often if the programmer does not specify proper prototypes for the
   // functions they are calling, they end up calling a vararg version of the
index e1088d2b2d52d24c17b7bb1b59390e7f6c015e92..c675e47c03aff4a20a379e11d97bbbb7f69d827c 100644 (file)
@@ -66,7 +66,7 @@ int main(int argc, char **argv) {
     // In addition to deleting all other functions, we also want to spiff it
     // up a little bit.  Do this now.
     PassManager Passes;
-    Passes.add(new TargetData("extract", M.get())); // Use correct TargetData
+    Passes.add(new TargetData(M.get())); // Use correct TargetData
     // Either isolate the function or delete it from the Module
     Passes.add(createFunctionExtractionPass(F, DeleteFn));
     Passes.add(createGlobalDCEPass());             // Delete unreachable globals
index 592b6225868be4a858cdb939b68dcfa4c86987d2..b61e8ef7db4e3d094bd91d4681ebeff735a12769 100644 (file)
@@ -102,7 +102,7 @@ void Optimize(Module* M) {
     Passes.add(createVerifierPass());
 
   // Add an appropriate TargetData instance for this module...
-  addPass(Passes, new TargetData("gccld", M));
+  addPass(Passes, new TargetData(M));
 
   // Often if the programmer does not specify proper prototypes for the
   // functions they are calling, they end up calling a vararg version of the
index 9fddd94438404256d087f75d3ee6d7d8f7518622..096506ff39295dc19fd70fd45759f40dbd4c4081 100644 (file)
@@ -134,7 +134,7 @@ int main(int argc, char **argv) {
     PassManager Passes;
 
     // Add an appropriate TargetData instance for this module...
-    Passes.add(new TargetData("opt", M.get()));
+    Passes.add(new TargetData(M.get()));
 
     // Create a new optimization pass for each one specified on the command line
     for (unsigned i = 0; i < OptimizationList.size(); ++i) {