summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-05 00:13:49 +0000
committerChris Lattner <sabre@nondot.org>2010-04-05 00:13:49 +0000
commit3a383cb7d93228ae7b31ca8ca048e666bb5c4a63 (patch)
treecd8bd2bd4cfdd19af3995e8a3c86414cbf31fb64 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parentaabc6041de259121447275edd50fc37b5031a8fe (diff)
downloadbcm5719-llvm-3a383cb7d93228ae7b31ca8ca048e666bb5c4a63.tar.gz
bcm5719-llvm-3a383cb7d93228ae7b31ca8ca048e666bb5c4a63.zip
1) make DIE take AsmPrinter instead of DwarfPrinter.
2) change DwarfDebug to not inherit from DwarfPrinter. llvm-svn: 100372
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 26277652f14..5eed88cf21d 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -90,12 +90,19 @@ TargetLoweringObjectFile &AsmPrinter::getObjFileLowering() const {
return TM.getTargetLowering()->getObjFileLowering();
}
+
+/// getTargetData - Return information about data layout.
+const TargetData &AsmPrinter::getTargetData() const {
+ return *TM.getTargetData();
+}
+
/// getCurrentSection() - Return the current section we are emitting to.
const MCSection *AsmPrinter::getCurrentSection() const {
return OutStreamer.getCurrentSection();
}
+
void AsmPrinter::getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesAll();
MachineFunctionPass::getAnalysisUsage(AU);
OpenPOWER on IntegriCloud