diff options
author | Nirav Dave <niravd@google.com> | 2017-01-31 17:00:27 +0000 |
---|---|---|
committer | Nirav Dave <niravd@google.com> | 2017-01-31 17:00:27 +0000 |
commit | a7c041d1477bdfd753f7155b2cb1fb739eaddb0f (patch) | |
tree | aae0d257c08f5dfe97a7e8820d81e23986524b5e /llvm/lib/CodeGen/TargetPassConfig.cpp | |
parent | 62b83ede84f5965358a6f91e52d0f9fc841ff556 (diff) | |
download | bcm5719-llvm-a7c041d1477bdfd753f7155b2cb1fb739eaddb0f.tar.gz bcm5719-llvm-a7c041d1477bdfd753f7155b2cb1fb739eaddb0f.zip |
[X86] Implement -mfentry
Summary: Insert calls to __fentry__ at function entry.
Reviewers: hfinkel, craig.topper
Subscribers: mgorny, llvm-commits
Differential Revision: https://reviews.llvm.org/D28000
llvm-svn: 293648
Diffstat (limited to 'llvm/lib/CodeGen/TargetPassConfig.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetPassConfig.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp index e7ea2b4563f..2788287ddc1 100644 --- a/llvm/lib/CodeGen/TargetPassConfig.cpp +++ b/llvm/lib/CodeGen/TargetPassConfig.cpp @@ -668,6 +668,9 @@ void TargetPassConfig::addMachinePasses() { addPass(&StackMapLivenessID, false); addPass(&LiveDebugValuesID, false); + // Insert before XRay Instrumentation. + addPass(&FEntryInserterID, false); + addPass(&XRayInstrumentationID, false); addPass(&PatchableFunctionID, false); |