projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[X86] Add support for tbyte memory operand size for Intel-syntax x86 assembly
[oota-llvm.git]
/
include
/
llvm
/
CodeGen
/
MachineFunctionPass.h
diff --git
a/include/llvm/CodeGen/MachineFunctionPass.h
b/include/llvm/CodeGen/MachineFunctionPass.h
index bac110316d4f306e2034314cb8b093bb1f8d4058..50a1f6e96217d923a4fa329c88b9aa1f2c9a1bc2 100644
(file)
--- a/
include/llvm/CodeGen/MachineFunctionPass.h
+++ b/
include/llvm/CodeGen/MachineFunctionPass.h
@@
-16,8
+16,8
@@
//
//===----------------------------------------------------------------------===//
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_CODEGEN_MACHINE
_FUNCTION_
PASS_H
-#define LLVM_CODEGEN_MACHINE
_FUNCTION_
PASS_H
+#ifndef LLVM_CODEGEN_MACHINE
FUNCTION
PASS_H
+#define LLVM_CODEGEN_MACHINE
FUNCTION
PASS_H
#include "llvm/Pass.h"
#include "llvm/Pass.h"
@@
-31,8
+31,7
@@
class MachineFunction;
/// override runOnMachineFunction.
class MachineFunctionPass : public FunctionPass {
protected:
/// override runOnMachineFunction.
class MachineFunctionPass : public FunctionPass {
protected:
- explicit MachineFunctionPass(intptr_t ID) : FunctionPass(ID) {}
- explicit MachineFunctionPass(void *ID) : FunctionPass(ID) {}
+ explicit MachineFunctionPass(char &ID) : FunctionPass(ID) {}
/// runOnMachineFunction - This method must be overloaded to perform the
/// desired machine code transformation or analysis.
/// runOnMachineFunction - This method must be overloaded to perform the
/// desired machine code transformation or analysis.
@@
-45,10
+44,14
@@
protected:
/// For MachineFunctionPasses, calling AU.preservesCFG() indicates that
/// the pass does not modify the MachineBasicBlock CFG.
///
/// For MachineFunctionPasses, calling AU.preservesCFG() indicates that
/// the pass does not modify the MachineBasicBlock CFG.
///
- v
irtual void getAnalysisUsage(AnalysisUsage &AU) const
;
+ v
oid getAnalysisUsage(AnalysisUsage &AU) const override
;
private:
private:
- bool runOnFunction(Function &F);
+ /// createPrinterPass - Get a machine function printer pass.
+ Pass *createPrinterPass(raw_ostream &O,
+ const std::string &Banner) const override;
+
+ bool runOnFunction(Function &F) override;
};
} // End llvm namespace
};
} // End llvm namespace