aboutsummaryrefslogtreecommitdiff
path: root/lib/MC/MCAsmStreamer.cpp
diff options
context:
space:
mode:
authorCharles Davis <cdavis@mines.edu>2011-05-27 19:09:24 +0000
committerCharles Davis <cdavis@mines.edu>2011-05-27 19:09:24 +0000
commit7b06b7357aa5a7cbdd769edbf6edb10fa055ea09 (patch)
tree6f97f0fd1907ce053bd77c15f7365e120263e7b4 /lib/MC/MCAsmStreamer.cpp
parentd3444ff5322ee0f17d9424fb3f5556b0d538c746 (diff)
Add a parameter to the Win64 EH section getters to get a section with a
suffix (e.g. .xdata$myfunc). The suffix part isn't implemented yet, but I'll get to it in the next patch. Fix up all callers of the affected functions. Make them pass said suffix to the function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132205 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCAsmStreamer.cpp')
-rw-r--r--lib/MC/MCAsmStreamer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/MC/MCAsmStreamer.cpp b/lib/MC/MCAsmStreamer.cpp
index 9376d55e71..ada3a70bf6 100644
--- a/lib/MC/MCAsmStreamer.cpp
+++ b/lib/MC/MCAsmStreamer.cpp
@@ -977,8 +977,10 @@ void MCAsmStreamer::EmitWin64EHHandlerData() {
// cause the section switch to be visible in the emitted assembly.
// We only do this so the section switch that terminates the handler
// data block is visible.
+ MCWin64EHUnwindInfo *CurFrame = getCurrentW64UnwindInfo();
+ StringRef suffix=MCWin64EHUnwindEmitter::GetSectionSuffix(CurFrame->Function);
const MCSection *xdataSect =
- getContext().getTargetAsmInfo().getWin64EHTableSection();
+ getContext().getTargetAsmInfo().getWin64EHTableSection(suffix);
if (xdataSect)
SwitchSectionNoChange(xdataSect);