mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 21:20:37 +00:00
deconstify getType()'s.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135323 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e63e5ab50a
commit
c1d414ad71
@ -64,13 +64,13 @@ public:
|
||||
|
||||
/// getType - InlineAsm's are always pointers.
|
||||
///
|
||||
const PointerType *getType() const {
|
||||
return reinterpret_cast<const PointerType*>(Value::getType());
|
||||
PointerType *getType() const {
|
||||
return reinterpret_cast<PointerType*>(Value::getType());
|
||||
}
|
||||
|
||||
/// getFunctionType - InlineAsm's are always pointers to functions.
|
||||
///
|
||||
const FunctionType *getFunctionType() const;
|
||||
FunctionType *getFunctionType() const;
|
||||
|
||||
const std::string &getAsmString() const { return AsmString; }
|
||||
const std::string &getConstraintString() const { return Constraints; }
|
||||
|
@ -51,7 +51,7 @@ void InlineAsm::destroyConstant() {
|
||||
delete this;
|
||||
}
|
||||
|
||||
const FunctionType *InlineAsm::getFunctionType() const {
|
||||
FunctionType *InlineAsm::getFunctionType() const {
|
||||
return cast<FunctionType>(getType()->getElementType());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user