summaryrefslogtreecommitdiff
path: root/lib/CodeGen/PatchableFunction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/PatchableFunction.cpp')
-rw-r--r--lib/CodeGen/PatchableFunction.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/CodeGen/PatchableFunction.cpp b/lib/CodeGen/PatchableFunction.cpp
index 513e82716564..0957705b19bb 100644
--- a/lib/CodeGen/PatchableFunction.cpp
+++ b/lib/CodeGen/PatchableFunction.cpp
@@ -16,9 +16,9 @@
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/Passes.h"
-#include "llvm/Target/TargetFrameLowering.h"
-#include "llvm/Target/TargetInstrInfo.h"
-#include "llvm/Target/TargetSubtargetInfo.h"
+#include "llvm/CodeGen/TargetFrameLowering.h"
+#include "llvm/CodeGen/TargetInstrInfo.h"
+#include "llvm/CodeGen/TargetSubtargetInfo.h"
using namespace llvm;
@@ -54,11 +54,11 @@ static bool doesNotGeneratecode(const MachineInstr &MI) {
}
bool PatchableFunction::runOnMachineFunction(MachineFunction &MF) {
- if (!MF.getFunction()->hasFnAttribute("patchable-function"))
+ if (!MF.getFunction().hasFnAttribute("patchable-function"))
return false;
#ifndef NDEBUG
- Attribute PatchAttr = MF.getFunction()->getFnAttribute("patchable-function");
+ Attribute PatchAttr = MF.getFunction().getFnAttribute("patchable-function");
StringRef PatchType = PatchAttr.getValueAsString();
assert(PatchType == "prologue-short-redirect" && "Only possibility today!");
#endif