aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h
diff options
context:
space:
mode:
authorArthur Eubanks <aeubanks@google.com>2023-08-25 18:21:00 -0700
committerArthur Eubanks <aeubanks@google.com>2023-08-25 18:34:15 -0700
commit0a4fc4ac1c6e74eba7eb184d3da11772a06df65f (patch)
tree7a4609631f01ed99dc348b70c1f04c7bcd446069 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h
parent08ed557714eed7f5cde9d1c5606f58280683884a (diff)
downloadllvm-0a4fc4ac1c6e74eba7eb184d3da11772a06df65f.zip
llvm-0a4fc4ac1c6e74eba7eb184d3da11772a06df65f.tar.gz
llvm-0a4fc4ac1c6e74eba7eb184d3da11772a06df65f.tar.bz2
Revert "Emit the CodeView `S_ARMSWITCHTABLE` debug symbol for jump tables"
This reverts commit 8d0c3db388143f4e058b5f513a70fd5d089d51c3. Causes crashes, see comments in https://reviews.llvm.org/D149367. Some follow-up fixes are also reverted: This reverts commit 636269f4fca44693bfd787b0a37bb0328ffcc085. This reverts commit 5966079cf4d4de0285004eef051784d0d9f7a3a6. This reverts commit e7294dbc85d24a08c716d9babbe7f68390cf219b.
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h
index eb274d2..1455ac4 100644
--- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h
+++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h
@@ -23,7 +23,6 @@
#include "llvm/ADT/SmallVector.h"
#include "llvm/CodeGen/DbgEntityHistoryCalculator.h"
#include "llvm/CodeGen/DebugHandlerBase.h"
-#include "llvm/CodeGen/MachineJumpTableInfo.h"
#include "llvm/DebugInfo/CodeView/CodeView.h"
#include "llvm/DebugInfo/CodeView/GlobalTypeTableBuilder.h"
#include "llvm/DebugInfo/CodeView/TypeIndex.h"
@@ -134,15 +133,6 @@ private:
StringRef Name;
};
- struct JumpTableInfo {
- codeview::JumpTableEntrySize EntrySize;
- const MCSymbol *Base;
- uint64_t BaseOffset;
- const MCSymbol *Branch;
- const MCSymbol *Table;
- size_t TableSize;
- };
-
// For each function, store a vector of labels to its instructions, as well as
// to the end of the function.
struct FunctionInfo {
@@ -170,8 +160,6 @@ private:
std::vector<std::tuple<const MCSymbol *, const MCSymbol *, const DIType *>>
HeapAllocSites;
- std::vector<JumpTableInfo> JumpTables;
-
const MCSymbol *Begin = nullptr;
const MCSymbol *End = nullptr;
unsigned FuncId = 0;
@@ -490,10 +478,6 @@ private:
unsigned getPointerSizeInBytes();
- void discoverJumpTableBranches(const MachineFunction *MF, bool isThumb);
- void collectDebugInfoForJumpTables(const MachineFunction *MF, bool isThumb);
- void emitDebugInfoForJumpTables(const FunctionInfo &FI);
-
protected:
/// Gather pre-function debug information.
void beginFunctionImpl(const MachineFunction *MF) override;