| Index: lib/CodeGen/LLVMTargetMachine.cpp
|
| diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp
|
| index 61face27f149557c80bf49f42bdfd2b341df94d7..3142db9262c88c4ff8862a58394c0b41ed6dacd1 100644
|
| --- a/lib/CodeGen/LLVMTargetMachine.cpp
|
| +++ b/lib/CodeGen/LLVMTargetMachine.cpp
|
| @@ -145,6 +145,9 @@ bool LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM,
|
| AnalysisID StopAfter) {
|
| // Passes to handle jumptable function annotations. These can't be handled at
|
| // JIT time, so we don't add them directly to addPassesToGenerateCode.
|
| + // @LOCALMOD: When there is no ModulePassManager in the PMStack, the
|
| + // JumpInstrTablesPass will silently be dropped and not added to the pass
|
| + // manager, because it is a module pass.
|
| PM.add(createJumpInstrTableInfoPass(
|
| getSubtargetImpl()->getInstrInfo()->getJumpInstrTableEntryBound()));
|
| PM.add(createJumpInstrTablesPass(Options.JTType));
|
|
|