2 Commits

Author SHA1 Message Date
HaohaiWen
394bba766d
[CodeGen][DebugInfo] Add missing debug info for jump table BB (#71021)
visitJumpTable is called on FinishBasicBlock. At that time, getCurSDLoc
will always return SDLoc without DebugLoc since CurInst was set to
nullptr after visiting each instruction.
This patch passes SDLoc to buildJumpTable when visiting SwitchInst so
that visitJumpTable can use it later.
2023-11-18 19:17:51 +08:00
HaohaiWen
45a92acfd9
[DebugInfo] Move jump table test to X86 directory (#72118)
This test is currently only enabled for X86 target.
2023-11-14 08:48:47 +08:00