projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mark extended type querying methods as 'readonly' to reduce compile size.
[oota-llvm.git]
/
include
/
llvm
/
CodeGen
/
MachineFunction.h
diff --git
a/include/llvm/CodeGen/MachineFunction.h
b/include/llvm/CodeGen/MachineFunction.h
index dda2dc708769709734a952b9d49473d68f2b5722..025e18a9dde03502aa2bddc2f385ec95fe56ec1d 100644
(file)
--- a/
include/llvm/CodeGen/MachineFunction.h
+++ b/
include/llvm/CodeGen/MachineFunction.h
@@
-127,8
+127,8
@@
class MachineFunction {
/// about the control flow of such functions.
bool ExposesReturnsTwice;
/// about the control flow of such functions.
bool ExposesReturnsTwice;
- MachineFunction(const MachineFunction &)
; // DO NOT IMPLEMENT
- void operator=(const MachineFunction&)
; // DO NOT IMPLEMENT
+ MachineFunction(const MachineFunction &)
LLVM_DELETED_FUNCTION;
+ void operator=(const MachineFunction&)
LLVM_DELETED_FUNCTION;
public:
MachineFunction(const Function *Fn, const TargetMachine &TM,
unsigned FunctionNum, MachineModuleInfo &MMI,
public:
MachineFunction(const Function *Fn, const TargetMachine &TM,
unsigned FunctionNum, MachineModuleInfo &MMI,
@@
-138,15
+138,19
@@
public:
MachineModuleInfo &getMMI() const { return MMI; }
GCModuleInfo *getGMI() const { return GMI; }
MCContext &getContext() const { return Ctx; }
MachineModuleInfo &getMMI() const { return MMI; }
GCModuleInfo *getGMI() const { return GMI; }
MCContext &getContext() const { return Ctx; }
-
+
/// getFunction - Return the LLVM function that this machine code represents
///
const Function *getFunction() const { return Fn; }
/// getFunction - Return the LLVM function that this machine code represents
///
const Function *getFunction() const { return Fn; }
+ /// getName - Return the name of the corresponding LLVM function.
+ ///
+ StringRef getName() const;
+
/// getFunctionNumber - Return a unique ID for the current function.
///
unsigned getFunctionNumber() const { return FunctionNumber; }
/// getFunctionNumber - Return a unique ID for the current function.
///
unsigned getFunctionNumber() const { return FunctionNumber; }
-
+
/// getTarget - Return the target machine this machine code is compiled with
///
const TargetMachine &getTarget() const { return Target; }
/// getTarget - Return the target machine this machine code is compiled with
///
const TargetMachine &getTarget() const { return Target; }
@@
-189,8
+193,8
@@
public:
///
void setAlignment(unsigned A) { Alignment = A; }
///
void setAlignment(unsigned A) { Alignment = A; }
- ///
E
nsureAlignment - Make sure the function is at least 1 << A bytes aligned.
- void
E
nsureAlignment(unsigned A) {
+ ///
e
nsureAlignment - Make sure the function is at least 1 << A bytes aligned.
+ void
e
nsureAlignment(unsigned A) {
if (Alignment < A) Alignment = A;
}
if (Alignment < A) Alignment = A;
}