mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-11 11:34:02 +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.
|
/// getType - InlineAsm's are always pointers.
|
||||||
///
|
///
|
||||||
const PointerType *getType() const {
|
PointerType *getType() const {
|
||||||
return reinterpret_cast<const PointerType*>(Value::getType());
|
return reinterpret_cast<PointerType*>(Value::getType());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// getFunctionType - InlineAsm's are always pointers to functions.
|
/// 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 &getAsmString() const { return AsmString; }
|
||||||
const std::string &getConstraintString() const { return Constraints; }
|
const std::string &getConstraintString() const { return Constraints; }
|
||||||
|
@ -51,7 +51,7 @@ void InlineAsm::destroyConstant() {
|
|||||||
delete this;
|
delete this;
|
||||||
}
|
}
|
||||||
|
|
||||||
const FunctionType *InlineAsm::getFunctionType() const {
|
FunctionType *InlineAsm::getFunctionType() const {
|
||||||
return cast<FunctionType>(getType()->getElementType());
|
return cast<FunctionType>(getType()->getElementType());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user