summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/FaultMaps.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2019-12-19 12:01:51 -0800
committerPhilip Reames <listmail@philipreames.com>2019-12-19 12:38:44 -0800
commitcf6aafa47c3771e4f353bfbdeb8157347b305339 (patch)
tree5ee4bbf5da7b3543b6e023826bdddd5537af03ae /llvm/lib/CodeGen/FaultMaps.cpp
parent7fcd9e3f70830a9c4bf631a602c2764180b5c3a8 (diff)
downloadbcm5719-llvm-cf6aafa47c3771e4f353bfbdeb8157347b305339.tar.gz
bcm5719-llvm-cf6aafa47c3771e4f353bfbdeb8157347b305339.zip
[FaultMaps] Make label formation a bit more explicit [NFC]
This is in advance of assembler padding directives support where we'll need to bundle the label w/the corresponding faulting instruction to avoid padding being inserted between.
Diffstat (limited to 'llvm/lib/CodeGen/FaultMaps.cpp')
-rw-r--r--llvm/lib/CodeGen/FaultMaps.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/FaultMaps.cpp b/llvm/lib/CodeGen/FaultMaps.cpp
index 600f72d320e..de0b4fa8709 100644
--- a/llvm/lib/CodeGen/FaultMaps.cpp
+++ b/llvm/lib/CodeGen/FaultMaps.cpp
@@ -28,11 +28,9 @@ const char *FaultMaps::WFMP = "Fault Maps: ";
FaultMaps::FaultMaps(AsmPrinter &AP) : AP(AP) {}
void FaultMaps::recordFaultingOp(FaultKind FaultTy,
+ const MCSymbol *FaultingLabel,
const MCSymbol *HandlerLabel) {
MCContext &OutContext = AP.OutStreamer->getContext();
- MCSymbol *FaultingLabel = OutContext.createTempSymbol();
-
- AP.OutStreamer->EmitLabel(FaultingLabel);
const MCExpr *FaultingOffset = MCBinaryExpr::createSub(
MCSymbolRefExpr::create(FaultingLabel, OutContext),
OpenPOWER on IntegriCloud