diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-20 13:11:28 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-20 13:11:28 +0000 |
commit | 61b696f1fa894a3a946fe12ec4b1ec4fd6580a0e (patch) | |
tree | c7bf63c868b9014bfeb8e43dcfedea849b8063ce /lib/CodeGen/LLVMTargetMachine.cpp | |
parent | 729aa1dbd32520b18007afed04070bdf3435407f (diff) | |
download | llvm-61b696f1fa894a3a946fe12ec4b1ec4fd6580a0e.tar.gz llvm-61b696f1fa894a3a946fe12ec4b1ec4fd6580a0e.tar.bz2 llvm-61b696f1fa894a3a946fe12ec4b1ec4fd6580a0e.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211358 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r-- | lib/CodeGen/LLVMTargetMachine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index 29062434f0..df96b945a8 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/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; } |