diff options
author | Chris Lattner <sabre@nondot.org> | 2004-02-18 21:29:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-02-18 21:29:46 +0000 |
commit | f913f40be8501738fa4bdcae2015dd196dcbfc50 (patch) | |
tree | 6777b12a361352233c6550700f263361c28a65d2 /tools/bugpoint/Miscompilation.cpp | |
parent | 06905db7d2a2b83c1b3236d5552629ada2d8d56d (diff) | |
download | llvm-f913f40be8501738fa4bdcae2015dd196dcbfc50.tar.gz llvm-f913f40be8501738fa4bdcae2015dd196dcbfc50.tar.bz2 llvm-f913f40be8501738fa4bdcae2015dd196dcbfc50.tar.xz |
A couple of minor cleanups: don't forward declare private classes, put private
classes in an anon namespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11604 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/Miscompilation.cpp')
-rw-r--r-- | tools/bugpoint/Miscompilation.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp index 0884ad97d1..98e299d76d 100644 --- a/tools/bugpoint/Miscompilation.cpp +++ b/tools/bugpoint/Miscompilation.cpp @@ -159,7 +159,7 @@ bool ReduceMiscompilingFunctions::TestFuncs(const std::vector<Function*> &Funcs, } // First step: clone the module for the two halves of the program we want. - Module *ToOptimize = CloneModule(BD.Program); + Module *ToOptimize = CloneModule(BD.getProgram()); // Second step: Make sure functions & globals are all external so that linkage // between the two modules will work. @@ -231,7 +231,7 @@ bool ReduceMiscompilingFunctions::TestFuncs(const std::vector<Function*> &Funcs, if (!EmitBytecode) std::cout << "done.\n"; - delete BD.Program; // Delete the old "ToOptimize" module + delete BD.getProgram(); // Delete the old "ToOptimize" module BD.Program = BD.ParseInputFile(BytecodeResult); if (EmitBytecode) { @@ -270,7 +270,7 @@ bool ReduceMiscompilingFunctions::TestFuncs(const std::vector<Function*> &Funcs, // output, then 'Funcs' are being misoptimized! bool Broken = BD.diffProgram(); - delete BD.Program; // Delete the hacked up program + delete BD.Program; // Delete the hacked up program BD.Program = OldProgram; // Restore the original std::cout << (Broken ? " nope.\n" : " yup.\n"); |