aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCContext.cpp
diff options
context:
space:
mode:
authorVy Nguyen <vyng@google.com>2023-06-06 14:00:47 -0400
committerVy Nguyen <vyng@google.com>2023-06-07 10:03:50 -0400
commite60b30d5e3878e7d91f8872ec4c4dca00d4a2dfc (patch)
tree91674a55081d3968d264d0a68224f3b1b15f2a1f /llvm/lib/MC/MCContext.cpp
parent2eb84c3ae2bf6c918c20cbe1c315e2f4683056f4 (diff)
downloadllvm-e60b30d5e3878e7d91f8872ec4c4dca00d4a2dfc.zip
llvm-e60b30d5e3878e7d91f8872ec4c4dca00d4a2dfc.tar.gz
llvm-e60b30d5e3878e7d91f8872ec4c4dca00d4a2dfc.tar.bz2
Reland "D144999 [MC][MachO]Only emits compact-unwind format for "canonical" personality symbols. For the rest, use DWARFs."
Reasons for rolling forward: - the crash reported from Chromium was fixed in D151824 (not related to this patch at all) - since D152824 was committed, it should now be safe to roll this forward. New change: - add an additional _ in name check This reverts commit 4980eead4d0b4666d53dad07afb091375b3a13a0.
Diffstat (limited to 'llvm/lib/MC/MCContext.cpp')
-rw-r--r--llvm/lib/MC/MCContext.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp
index f84aa4a..80d593b 100644
--- a/llvm/lib/MC/MCContext.cpp
+++ b/llvm/lib/MC/MCContext.cpp
@@ -922,6 +922,12 @@ EmitDwarfUnwindType MCContext::emitDwarfUnwindInfo() const {
return TargetOptions->EmitDwarfUnwind;
}
+bool MCContext::emitCompactUnwindNonCanonical() const {
+ if (TargetOptions)
+ return TargetOptions->EmitCompactUnwindNonCanonical;
+ return false;
+}
+
void MCContext::setGenDwarfRootFile(StringRef InputFileName, StringRef Buffer) {
// MCDwarf needs the root file as well as the compilation directory.
// If we find a '.file 0' directive that will supersede these values.