projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[asan-assembly-instrumentation] Added CFI directives to the generated instrumentation...
[oota-llvm.git]
/
lib
/
Target
/
X86
/
AsmParser
/
X86AsmInstrumentation.h
diff --git
a/lib/Target/X86/AsmParser/X86AsmInstrumentation.h
b/lib/Target/X86/AsmParser/X86AsmInstrumentation.h
index 4b23b4b2c98edc24b33e5f0ce434cf7cd27eaf25..aa2ed03a19b6f43c2a1388cd74cd33b603c7e2d5 100644
(file)
--- a/
lib/Target/X86/AsmParser/X86AsmInstrumentation.h
+++ b/
lib/Target/X86/AsmParser/X86AsmInstrumentation.h
@@
-34,6
+34,10
@@
class X86AsmInstrumentation {
public:
virtual ~X86AsmInstrumentation();
public:
virtual ~X86AsmInstrumentation();
+ void SetFrameRegister(unsigned RegNo) {
+ FrameReg = RegNo;
+ }
+
// Tries to instrument and emit instruction.
virtual void InstrumentAndEmitInstruction(
const MCInst &Inst,
// Tries to instrument and emit instruction.
virtual void InstrumentAndEmitInstruction(
const MCInst &Inst,
@@
-50,6
+54,8
@@
protected:
void EmitInstruction(MCStreamer &Out, const MCInst &Inst);
const MCSubtargetInfo &STI;
void EmitInstruction(MCStreamer &Out, const MCInst &Inst);
const MCSubtargetInfo &STI;
+
+ unsigned FrameReg;
};
} // End llvm namespace
};
} // End llvm namespace