forked from OSchip/llvm-project
Recommit 69694 but this time also include the header changes (sorry for breaking
the build). llvm-svn: 69702
This commit is contained in:
parent
37920f5359
commit
9bb660c3f4
|
@ -223,7 +223,14 @@ public:
|
|||
return static_cast<const FunctionDecl*>(Data);
|
||||
}
|
||||
|
||||
virtual bool isBoundable(ASTContext&) const { return false; }
|
||||
SymbolRef getSymbol() const {
|
||||
assert(codekind == Symbolic);
|
||||
return const_cast<SymbolRef>(static_cast<const SymbolRef>(Data));
|
||||
}
|
||||
|
||||
bool isBoundable(ASTContext&) const { return false; }
|
||||
|
||||
virtual void print(llvm::raw_ostream& os) const;
|
||||
|
||||
void Profile(llvm::FoldingSetNodeID& ID) const;
|
||||
|
||||
|
|
|
@ -157,6 +157,16 @@ void AllocaRegion::print(llvm::raw_ostream& os) const {
|
|||
os << "alloca{" << (void*) Ex << ',' << Cnt << '}';
|
||||
}
|
||||
|
||||
void CodeTextRegion::print(llvm::raw_ostream& os) const {
|
||||
os << "code{";
|
||||
if (isDeclared())
|
||||
os << getDecl()->getDeclName();
|
||||
else
|
||||
os << '$' << getSymbol();
|
||||
|
||||
os << '}';
|
||||
}
|
||||
|
||||
void CompoundLiteralRegion::print(llvm::raw_ostream& os) const {
|
||||
// FIXME: More elaborate pretty-printing.
|
||||
os << "{ " << (void*) CL << " }";
|
||||
|
|
Loading…
Reference in New Issue