diff options
author | Eli Friedman <efriedma@codeaurora.org> | 2018-11-07 22:30:56 +0000 |
---|---|---|
committer | Eli Friedman <efriedma@codeaurora.org> | 2018-11-07 22:30:56 +0000 |
commit | 0917d0c80c4333b6d2a7415dd70809a89905160a (patch) | |
tree | 23086e3594d04e90becb5367db084f8f93c3fab7 /llvm/lib/Target/AArch64/AArch64TargetMachine.cpp | |
parent | bf1badb6bb96308129b34ef3e510d20cc01fc04b (diff) | |
download | bcm5719-llvm-0917d0c80c4333b6d2a7415dd70809a89905160a.tar.gz bcm5719-llvm-0917d0c80c4333b6d2a7415dd70809a89905160a.zip |
[AArch64] [Windows] Address post-commit review comment on r346358.
In this context, usesWindowsCFI() is basically the same thing as
isOSWindows(), but it makes the relevant property of the target
more explicit.
llvm-svn: 346366
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64TargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/AArch64/AArch64TargetMachine.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp b/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp index 5168c0c67da..2f3f87d02b7 100644 --- a/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp +++ b/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp @@ -30,6 +30,7 @@ #include "llvm/CodeGen/TargetPassConfig.h" #include "llvm/IR/Attributes.h" #include "llvm/IR/Function.h" +#include "llvm/MC/MCAsmInfo.h" #include "llvm/MC/MCTargetOptions.h" #include "llvm/Pass.h" #include "llvm/Support/CodeGen.h" @@ -263,7 +264,7 @@ AArch64TargetMachine::AArch64TargetMachine(const Target &T, const Triple &TT, this->Options.NoTrapAfterNoreturn = true; } - if (TT.isOSWindows()) { + if (getMCAsmInfo()->usesWindowsCFI()) { // Unwinding can get confused if the last instruction in an // exception-handling region (function, funclet, try block, etc.) // is a call. |