summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LLVMTargetMachine.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-06-20 13:11:28 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-06-20 13:11:28 +0000
commit1fc003e6c50014d110f559f6ef31a030cec8d575 (patch)
treec8548460b1df8dd16412f70be034292a727a88a7 /llvm/lib/CodeGen/LLVMTargetMachine.cpp
parent36a6193bf494c01e9ba4fbcb6b95744ef8d1a2da (diff)
downloadbcm5719-llvm-1fc003e6c50014d110f559f6ef31a030cec8d575.tar.gz
bcm5719-llvm-1fc003e6c50014d110f559f6ef31a030cec8d575.zip
Allow a target to create a null streamer.
Targets can assume that a target streamer is present, so they have to be able to construct a null streamer in order to set the target streamer in it to. Fixes a crash when using the null streamer with arm. llvm-svn: 211358
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r--llvm/lib/CodeGen/LLVMTargetMachine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
index 29062434f00..df96b945a8d 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
@@ -209,7 +209,7 @@ bool LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM,
case CGFT_Null:
// The Null output is intended for use for performance analysis and testing,
// not real users.
- AsmStreamer.reset(createNullStreamer(*Context));
+ AsmStreamer.reset(getTarget().createNullStreamer(*Context));
break;
}
OpenPOWER on IntegriCloud