summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/DwarfWriter.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-07-03 22:53:42 +0000
committerBill Wendling <isanbard@gmail.com>2008-07-03 22:53:42 +0000
commit2e50689435cd32b128cb78ba7b6f3888917b6521 (patch)
tree710adf77de827556228f0c0e8201614c84eaebb6 /llvm/lib/CodeGen/DwarfWriter.cpp
parenta0e4fb82837e0e35303f90fa129884731359de9f (diff)
downloadbcm5719-llvm-2e50689435cd32b128cb78ba7b6f3888917b6521.tar.gz
bcm5719-llvm-2e50689435cd32b128cb78ba7b6f3888917b6521.zip
Revert my previous check-in that split up MachineModuleInfo. It turns out to
slow the compiler down at -O0 some 30% or more. Ooops. llvm-svn: 53120
Diffstat (limited to 'llvm/lib/CodeGen/DwarfWriter.cpp')
-rw-r--r--llvm/lib/CodeGen/DwarfWriter.cpp23
1 files changed, 12 insertions, 11 deletions
diff --git a/llvm/lib/CodeGen/DwarfWriter.cpp b/llvm/lib/CodeGen/DwarfWriter.cpp
index 569702c59df..a284ba19eb6 100644
--- a/llvm/lib/CodeGen/DwarfWriter.cpp
+++ b/llvm/lib/CodeGen/DwarfWriter.cpp
@@ -20,7 +20,6 @@
#include "llvm/Module.h"
#include "llvm/Type.h"
#include "llvm/CodeGen/AsmPrinter.h"
-#include "llvm/CodeGen/MachineDebugInfoDesc.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineLocation.h"
@@ -2631,23 +2630,25 @@ private:
/// ConstructGlobalDIEs - Create DIEs for each of the externally visible
/// global variables.
void ConstructGlobalDIEs() {
- std::vector<void*> GlobalVariables;
- GlobalVariableDesc GVD;
- MMI->getAnchoredDescriptors(*M, &GVD, GlobalVariables);
+ std::vector<GlobalVariableDesc *> GlobalVariables =
+ MMI->getAnchoredDescriptors<GlobalVariableDesc>(*M);
- for (unsigned i = 0, N = GlobalVariables.size(); i < N; ++i)
- NewGlobalVariable((GlobalVariableDesc *)GlobalVariables[i]);
+ for (unsigned i = 0, N = GlobalVariables.size(); i < N; ++i) {
+ GlobalVariableDesc *GVD = GlobalVariables[i];
+ NewGlobalVariable(GVD);
+ }
}
/// ConstructSubprogramDIEs - Create DIEs for each of the externally visible
/// subprograms.
void ConstructSubprogramDIEs() {
- std::vector<void*> Subprograms;
- SubprogramDesc SPD;
- MMI->getAnchoredDescriptors(*M, &SPD, Subprograms);
+ std::vector<SubprogramDesc *> Subprograms =
+ MMI->getAnchoredDescriptors<SubprogramDesc>(*M);
- for (unsigned i = 0, N = Subprograms.size(); i < N; ++i)
- NewSubprogram((SubprogramDesc*)Subprograms[i]);
+ for (unsigned i = 0, N = Subprograms.size(); i < N; ++i) {
+ SubprogramDesc *SPD = Subprograms[i];
+ NewSubprogram(SPD);
+ }
}
public:
OpenPOWER on IntegriCloud