diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-01-07 22:42:19 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-01-07 22:42:19 +0000 |
commit | 547be2699c547b79a7735858a64921d8ccf180f7 (patch) | |
tree | 616d1b084764043625272e37932b36dd5eeb54ac /lib/MC/MCStreamer.cpp | |
parent | 86132a721d7671f382e0c88c0233ec92186daaf4 (diff) | |
download | llvm-547be2699c547b79a7735858a64921d8ccf180f7.tar.gz llvm-547be2699c547b79a7735858a64921d8ccf180f7.tar.bz2 llvm-547be2699c547b79a7735858a64921d8ccf180f7.tar.xz |
Don't print a label before .cfi_startproc when we don't need to. This makes
the produce assembly when using CFI just a bit more readable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147743 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCStreamer.cpp')
-rw-r--r-- | lib/MC/MCStreamer.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/MC/MCStreamer.cpp b/lib/MC/MCStreamer.cpp index ce9de9d4c5..145489a0bc 100644 --- a/lib/MC/MCStreamer.cpp +++ b/lib/MC/MCStreamer.cpp @@ -276,8 +276,17 @@ void MCStreamer::EmitCFIStartProc() { report_fatal_error("Starting a frame before finishing the previous one!"); MCDwarfFrameInfo Frame; - Frame.Function = LastSymbol; + EmitCFIStartProcImpl(Frame); + + FrameInfos.push_back(Frame); + RegionIndicator = Code; +} +void MCStreamer::EmitCFIStartProcImpl(MCDwarfFrameInfo &Frame) { +} + +void MCStreamer::RecordProcStart(MCDwarfFrameInfo &Frame) { + Frame.Function = LastSymbol; // If the function is externally visible, we need to create a local // symbol to avoid relocations. StringRef Prefix = getContext().getAsmInfo().getPrivateGlobalPrefix(); @@ -287,9 +296,6 @@ void MCStreamer::EmitCFIStartProc() { Frame.Begin = getContext().CreateTempSymbol(); EmitLabel(Frame.Begin); } - - FrameInfos.push_back(Frame); - RegionIndicator = Code; } void MCStreamer::EmitCFIEndProc() { |