summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-31 17:42:42 +0000
committerChris Lattner <sabre@nondot.org>2009-07-31 17:42:42 +0000
commit51d5b43cda213e3cac83700e39e47657c55fd362 (patch)
tree461ddaf686fedc49ae6b1a21211f4aa0def27a0c /llvm/lib/CodeGen/AsmPrinter
parentfe4e34707cae1e634b572441baad8ef7457fbf11 (diff)
downloadbcm5719-llvm-51d5b43cda213e3cac83700e39e47657c55fd362.tar.gz
bcm5719-llvm-51d5b43cda213e3cac83700e39e47657c55fd362.zip
refactor section construction in TLOF to be through an explicit
initialize method, which can be called when an MCContext is available. llvm-svn: 77687
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 441f8057c8b..7106c6ade81 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -173,6 +173,10 @@ void AsmPrinter::getAnalysisUsage(AnalysisUsage &AU) const {
}
bool AsmPrinter::doInitialization(Module &M) {
+ // Initialize TargetLoweringObjectFile.
+ const_cast<TargetLoweringObjectFile&>(getObjFileLowering())
+ .Initialize(OutContext, TM);
+
Mang = new Mangler(M, TAI->getGlobalPrefix(), TAI->getPrivateGlobalPrefix(),
TAI->getLinkerPrivateGlobalPrefix());
OpenPOWER on IntegriCloud