llvm.org GIT mirror llvm / 831b121
Don't pass target name into TargetData anymore, it is never used or needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28831 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 14 years ago
9 changed file(s) with 9 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
263263 // Set up a pass manager
264264 PassManager Passes;
265265 // Add in the passes we want to execute
266 Passes.add(new TargetData("stkrc",TheModule));
266 Passes.add(new TargetData(TheModule));
267267 // Verify we start with valid
268268 Passes.add(createVerifierPass());
269269
147147 PassManager Passes;
148148
149149 // Add an appropriate TargetData instance for this module...
150 Passes.add(new TargetData("analyze", CurMod));
150 Passes.add(new TargetData(CurMod));
151151
152152 // Make sure the input LLVM is well formed.
153153 if (!NoVerify)
7979 // Spiff up the output a little bit.
8080 PassManager Passes;
8181 // Make sure that the appropriate target data is always used...
82 Passes.add(new TargetData("bugpoint", Result));
82 Passes.add(new TargetData(Result));
8383
8484 /// FIXME: If this used runPasses() like the methods below, we could get rid
8585 /// of the -disable-* options!
103103
104104 PassManager PM;
105105 // Make sure that the appropriate target data is always used...
106 PM.add(new TargetData("bugpoint", Program));
106 PM.add(new TargetData(Program));
107107
108108 for (unsigned i = 0, e = Passes.size(); i != e; ++i) {
109109 if (Passes[i]->getNormalCtor())
191191 PassManager Passes;
192192
193193 // Add an appropriate TargetData instance for this module...
194 Passes.add(new TargetData("gccas", M.get()));
194 Passes.add(new TargetData(M.get()));
195195
196196 // Add all of the transformation passes to the pass manager to do the cleanup
197197 // and optimization of the GCC output.
206206 if (Verify) Passes.add(createVerifierPass());
207207
208208 // Add an appropriate TargetData instance for this module...
209 addPass(Passes, new TargetData("gccld", M));
209 addPass(Passes, new TargetData(M));
210210
211211 // Often if the programmer does not specify proper prototypes for the
212212 // functions they are calling, they end up calling a vararg version of the
6565 // In addition to deleting all other functions, we also want to spiff it
6666 // up a little bit. Do this now.
6767 PassManager Passes;
68 Passes.add(new TargetData("extract", M.get())); // Use correct TargetData
68 Passes.add(new TargetData(M.get())); // Use correct TargetData
6969 // Either isolate the function or delete it from the Module
7070 Passes.add(createFunctionExtractionPass(F, DeleteFn));
7171 Passes.add(createGlobalDCEPass()); // Delete unreachable globals
101101 Passes.add(createVerifierPass());
102102
103103 // Add an appropriate TargetData instance for this module...
104 addPass(Passes, new TargetData("gccld", M));
104 addPass(Passes, new TargetData(M));
105105
106106 // Often if the programmer does not specify proper prototypes for the
107107 // functions they are calling, they end up calling a vararg version of the
133133 PassManager Passes;
134134
135135 // Add an appropriate TargetData instance for this module...
136 Passes.add(new TargetData("opt", M.get()));
136 Passes.add(new TargetData(M.get()));
137137
138138 // Create a new optimization pass for each one specified on the command line
139139 for (unsigned i = 0; i < OptimizationList.size(); ++i) {