[llvm-commits] [llvm] r122612 - in /llvm/trunk: lib/MC/MCStreamer.cpp test/MC/ELF/cfi-def-cfa-register.s
Bill Wendling
wendling at apple.com
Tue Dec 28 18:23:33 PST 2010
On Dec 28, 2010, at 4:26 PM, Rafael Espindola wrote:
> Author: rafael
> Date: Tue Dec 28 18:26:06 2010
> New Revision: 122612
>
> URL: http://llvm.org/viewvc/llvm-project?rev=122612&view=rev
> Log:
> Implement cfi_def_cfa_register.
>
> Added:
> llvm/trunk/test/MC/ELF/cfi-def-cfa-register.s
> Modified:
> llvm/trunk/lib/MC/MCStreamer.cpp
>
> Modified: llvm/trunk/lib/MC/MCStreamer.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCStreamer.cpp?rev=122612&r1=122611&r2=122612&view=diff
> ==============================================================================
> --- llvm/trunk/lib/MC/MCStreamer.cpp (original)
> +++ llvm/trunk/lib/MC/MCStreamer.cpp Tue Dec 28 18:26:06 2010
> @@ -186,6 +186,14 @@
>
> bool MCStreamer::EmitCFIDefCfaRegister(int64_t Register) {
> EnsureValidFrame();
> + MCDwarfFrameInfo *CurFrame = getCurrentFrameInfo();
> + MCSymbol *Label = getContext().CreateTempSymbol();
> + EmitLabel(Label);
> + MachineLocation Dest(Register);
> + MachineLocation Source(MachineLocation::VirtualFP);
> + MCCFIInstruction Instruction(Label, Dest, Source);
> + CurFrame->Instructions.push_back(Instruction);
> + return false;
> return false;
You have two returns here. :-)
-bw
More information about the llvm-commits
mailing list