aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h
diff options
context:
space:
mode:
authorJameson Nash <vtjnash@gmail.com>2020-11-03 08:54:51 -0500
committerJameson Nash <vtjnash@gmail.com>2020-11-03 10:02:09 -0500
commita0ad066ce490ba34f259dd0fc8ad5810bd92dc3d (patch)
treed600989a4f78fdb5e39366b3017387060be11d88 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h
parent97e8da45f9459ce9334c2d387ada7d2cde9625f4 (diff)
downloadllvm-a0ad066ce490ba34f259dd0fc8ad5810bd92dc3d.zip
llvm-a0ad066ce490ba34f259dd0fc8ad5810bd92dc3d.tar.gz
llvm-a0ad066ce490ba34f259dd0fc8ad5810bd92dc3d.tar.bz2
make the AsmPrinterHandler array public
This lets external consumers customize the output, similar to how AssemblyAnnotationWriter lets the caller define callbacks when printing IR. The array of handlers already existed, this just cleans up the code so that it can be exposed publically. Replaces https://reviews.llvm.org/D74158 Differential Revision: https://reviews.llvm.org/D89613
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h
index 0e4fd53..778b1d7 100644
--- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h
+++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h
@@ -469,6 +469,8 @@ protected:
public:
CodeViewDebug(AsmPrinter *AP);
+ void beginModule(Module *M) override;
+
void setSymbolSize(const MCSymbol *, uint64_t) override {}
/// Emit the COFF section that holds the line table information.