diff options
author | Fangrui Song <i@maskray.me> | 2024-06-12 16:42:58 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2024-06-12 16:42:58 -0700 |
commit | ca91538c9c6f5328f398ac849dcc4230824b007e (patch) | |
tree | b7c1dac8c190c6f5b654ebcd7c4d7f44763d840e /llvm/lib/CodeGen/LLVMTargetMachine.cpp | |
parent | e80c59556d2d71cc2d0dcb2bd712c36cc4043025 (diff) | |
download | llvm-ca91538c9c6f5328f398ac849dcc4230824b007e.zip llvm-ca91538c9c6f5328f398ac849dcc4230824b007e.tar.gz llvm-ca91538c9c6f5328f398ac849dcc4230824b007e.tar.bz2 |
[MC] Move AllowTemporaryLabels setting to MCContext::MCContext
Also delete `AllowTemporaryLabels = true` from MCContext::reset: when
llc supports -save-temp-labels in the next change, this assignment
should be removed to support -compile-twice.
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LLVMTargetMachine.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index 94ab8ed..1d13173 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp @@ -150,9 +150,6 @@ bool LLVMTargetMachine::addAsmPrinter(PassManagerBase &PM, Expected<std::unique_ptr<MCStreamer>> LLVMTargetMachine::createMCStreamer( raw_pwrite_stream &Out, raw_pwrite_stream *DwoOut, CodeGenFileType FileType, MCContext &Context) { - if (Options.MCOptions.MCSaveTempLabels) - Context.setAllowTemporaryLabels(false); - const MCSubtargetInfo &STI = *getMCSubtargetInfo(); const MCAsmInfo &MAI = *getMCAsmInfo(); const MCRegisterInfo &MRI = *getMCRegisterInfo(); @@ -272,8 +269,6 @@ bool LLVMTargetMachine::addPassesToEmitMC(PassManagerBase &PM, MCContext *&Ctx, // libunwind is unable to load compact unwind dynamically, so we must generate // DWARF unwind info for the JIT. Options.MCOptions.EmitDwarfUnwind = EmitDwarfUnwindType::Always; - if (Options.MCOptions.MCSaveTempLabels) - Ctx->setAllowTemporaryLabels(false); // Create the code emitter for the target if it exists. If not, .o file // emission fails. |