projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make the LegalizeType method naming scheme more regular.
[oota-llvm.git]
/
lib
/
CodeGen
/
DwarfWriter.cpp
diff --git
a/lib/CodeGen/DwarfWriter.cpp
b/lib/CodeGen/DwarfWriter.cpp
index 569702c59dffe6955e661cb3de6a6b1c44ccc8c3..a5862c9e872b9d2c39428c605adccb28dfa659bb 100644
(file)
--- a/
lib/CodeGen/DwarfWriter.cpp
+++ b/
lib/CodeGen/DwarfWriter.cpp
@@
-20,7
+20,6
@@
#include "llvm/Module.h"
#include "llvm/Type.h"
#include "llvm/CodeGen/AsmPrinter.h"
#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"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineLocation.h"
@@
-1092,7
+1091,10
@@
public:
Asm->EOL("Offset");
} else if (Reg < 64) {
Asm->EmitInt8(DW_CFA_offset + Reg);
Asm->EOL("Offset");
} else if (Reg < 64) {
Asm->EmitInt8(DW_CFA_offset + Reg);
- Asm->EOL("DW_CFA_offset + Reg (" + utostr(Reg) + ")");
+ if (VerboseAsm)
+ Asm->EOL("DW_CFA_offset + Reg (" + utostr(Reg) + ")");
+ else
+ Asm->EOL();
Asm->EmitULEB128Bytes(Offset);
Asm->EOL("Offset");
} else {
Asm->EmitULEB128Bytes(Offset);
Asm->EOL("Offset");
} else {
@@
-2631,23
+2633,25
@@
private:
/// ConstructGlobalDIEs - Create DIEs for each of the externally visible
/// global variables.
void ConstructGlobalDIEs() {
/// 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, GlobalVariables);
- 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() {
}
/// 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, Subprograms);
- 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:
}
public:
@@
-2719,8
+2723,6
@@
public:
/// content.
void BeginModule(Module *M) {
this->M = M;
/// content.
void BeginModule(Module *M) {
this->M = M;
-
- if (!ShouldEmitDwarf()) return;
}
/// EndModule - Emit all Dwarf sections that should come after the content.
}
/// EndModule - Emit all Dwarf sections that should come after the content.
@@
-3511,9
+3513,7
@@
public:
shouldEmitTable = true;
// See if we need frame move info.
shouldEmitTable = true;
// See if we need frame move info.
- if ((MMI->hasDebugInfo() && TAI->doesDebugInfoRequireFrameMoveInfo()) ||
- !MF->getFunction()->doesNotThrow() ||
- UnwindTablesMandatory)
+ if (!MF->getFunction()->doesNotThrow() || UnwindTablesMandatory)
shouldEmitMoves = true;
if (shouldEmitMoves || shouldEmitTable)
shouldEmitMoves = true;
if (shouldEmitMoves || shouldEmitTable)