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
This commit is contained in:
Chris Lattner 2006-06-16 18:23:49 +00:00
parent 1790d44d0d
commit 831b121039
9 changed files with 9 additions and 9 deletions

View 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());

View 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)

View 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!

View 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())

View 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.

View 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

View 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

View 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

View 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) {