expand DIContext interface a bit

Summary:
This allows a bit more control for scenarios where client might
modifiy a DIContext

Reviewers: twoh, Kader, modocache

Reviewed By: Kader

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D56505

llvm-svn: 351107
This commit is contained in:
David Callahan 2019-01-14 19:11:32 +00:00
parent cc10d54432
commit 0e0ccaf7d5

View File

@ -81,7 +81,7 @@ class DIInliningInfo {
public:
DIInliningInfo() = default;
DILineInfo getFrame(unsigned Index) const {
const DILineInfo & getFrame(unsigned Index) const {
assert(Index < Frames.size());
return Frames[Index];
}
@ -98,6 +98,11 @@ public:
void addFrame(const DILineInfo &Frame) {
Frames.push_back(Frame);
}
void resize(unsigned i) {
Frames.resize(i);
}
};
/// Container for description of a global variable.