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:
Chris Lattner 2011-07-15 23:15:45 +00:00
parent e63e5ab50a
commit c1d414ad71
2 changed files with 4 additions and 4 deletions

View File

@ -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; }

View File

@ -51,7 +51,7 @@ void InlineAsm::destroyConstant() {
delete this;
}
const FunctionType *InlineAsm::getFunctionType() const {
FunctionType *InlineAsm::getFunctionType() const {
return cast<FunctionType>(getType()->getElementType());
}