diff options
Diffstat (limited to 'llvm/tools/llvm-mc/llvm-mc.cpp')
-rw-r--r-- | llvm/tools/llvm-mc/llvm-mc.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-mc/llvm-mc.cpp b/llvm/tools/llvm-mc/llvm-mc.cpp index ba55079..2a89961 100644 --- a/llvm/tools/llvm-mc/llvm-mc.cpp +++ b/llvm/tools/llvm-mc/llvm-mc.cpp @@ -642,7 +642,8 @@ int main(int argc, char **argv) { : MAB->createObjectWriter(*OS), std::unique_ptr<MCCodeEmitter>(CE), *STI)); if (NoExecStack) - Str->switchSection(Ctx.getAsmInfo()->getNonexecutableStackSection(Ctx)); + Str->switchSection( + Ctx.getAsmInfo()->getStackSection(Ctx, /*Exec=*/false)); Str->emitVersionForTarget(TheTriple, VersionTuple(), nullptr, VersionTuple()); } |