summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/DwarfWriter.cpp
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-09-07 22:06:40 +0000
committerJim Laskey <jlaskey@mac.com>2006-09-07 22:06:40 +0000
commit261779bb4505004d3b0692347331ff11088e5358 (patch)
tree10ac1ef3eac5105816555a74912d7dc400e03041 /llvm/lib/CodeGen/DwarfWriter.cpp
parent0e83541f8b4e4dc5c69c7048e1c9cb601be06a33 (diff)
downloadbcm5719-llvm-261779bb4505004d3b0692347331ff11088e5358.tar.gz
bcm5719-llvm-261779bb4505004d3b0692347331ff11088e5358.zip
Make target asm info a property of the target machine.
llvm-svn: 30162
Diffstat (limited to 'llvm/lib/CodeGen/DwarfWriter.cpp')
-rw-r--r--llvm/lib/CodeGen/DwarfWriter.cpp35
1 files changed, 18 insertions, 17 deletions
diff --git a/llvm/lib/CodeGen/DwarfWriter.cpp b/llvm/lib/CodeGen/DwarfWriter.cpp
index 9c4726ebc78..22d67449e17 100644
--- a/llvm/lib/CodeGen/DwarfWriter.cpp
+++ b/llvm/lib/CodeGen/DwarfWriter.cpp
@@ -574,24 +574,24 @@ void DIEAbbrev::Emit(const DwarfWriter &DW) const {
}
#ifndef NDEBUG
- void DIEAbbrev::print(std::ostream &O) {
- O << "Abbreviation @"
- << std::hex << (intptr_t)this << std::dec
+void DIEAbbrev::print(std::ostream &O) {
+ O << "Abbreviation @"
+ << std::hex << (intptr_t)this << std::dec
+ << " "
+ << TagString(Tag)
+ << " "
+ << ChildrenString(ChildrenFlag)
+ << "\n";
+
+ for (unsigned i = 0, N = Data.size(); i < N; ++i) {
+ O << " "
+ << AttributeString(Data[i].getAttribute())
<< " "
- << TagString(Tag)
- << " "
- << ChildrenString(ChildrenFlag)
+ << FormEncodingString(Data[i].getForm())
<< "\n";
-
- for (unsigned i = 0, N = Data.size(); i < N; ++i) {
- O << " "
- << AttributeString(Data[i].getAttribute())
- << " "
- << FormEncodingString(Data[i].getForm())
- << "\n";
- }
}
- void DIEAbbrev::dump() { print(std::cerr); }
+}
+void DIEAbbrev::dump() { print(std::cerr); }
#endif
//===----------------------------------------------------------------------===//
@@ -1160,7 +1160,7 @@ void DwarfWriter::EmitReference(const std::string &Name) const {
/// is an option (needsSet) to use an intermediary 'set' expression.
void DwarfWriter::EmitDifference(const char *TagHi, unsigned NumberHi,
const char *TagLo, unsigned NumberLo) const {
- if (TAI->getNeedsSet()) {
+ if (TAI->needsSet()) {
static unsigned SetCounter = 0;
O << "\t.set\t";
@@ -2467,7 +2467,8 @@ void DwarfWriter::ConstructSubprogramDIEs() {
// Main entry points.
//
-DwarfWriter::DwarfWriter(std::ostream &OS, AsmPrinter *A, TargetAsmInfo *T)
+DwarfWriter::DwarfWriter(std::ostream &OS, AsmPrinter *A,
+ const TargetAsmInfo *T)
: O(OS)
, Asm(A)
, TAI(T)
OpenPOWER on IntegriCloud