mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 06:10:12 +00:00
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:
parent
cc10d54432
commit
0e0ccaf7d5
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user