MC: Fix the MCNullStreamer which was broken in r147763.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151213 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2012-02-22 23:49:50 +00:00
parent 02634be4d4
commit c9addc4010
2 changed files with 15 additions and 0 deletions

View File

@ -95,6 +95,10 @@ namespace {
virtual void EmitInstruction(const MCInst &Inst) {}
virtual void FinishImpl() {}
virtual void EmitCFIEndProcImpl(MCDwarfFrameInfo &Frame) {
RecordProcEnd(Frame);
}
/// @}
};

View File

@ -0,0 +1,11 @@
; Check the MCNullStreamer operates correctly, at least on a minimal test case.
;
; RUN: llc -filetype=null -o %t -march=x86 %s
define void @f0() {
ret void
}
define void @f1() {
ret void
}