
This patch adds a new `GetIndexForLineEntry` method to the `SBCompileUnit` class. As the name suggests, given an `SBLineEntry` object, this will return the line entry index within a specific compile unit. This method can take a `exact` boolean that will make sure that the provided line entry matches perfectly another line entry in the compile unit. rdar://47450887 Differention Revision: https://reviews.llvm.org/D125437 Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
26 lines
395 B
C
26 lines
395 B
C
int a(int);
|
|
int b(int);
|
|
int c(int);
|
|
|
|
int a(int val) {
|
|
if (val <= 1)
|
|
val = b(val);
|
|
else if (val >= 3)
|
|
val = c(val);
|
|
|
|
return val;
|
|
}
|
|
|
|
int b(int val) { return c(val); }
|
|
|
|
int c(int val) {
|
|
return val + 3; // break here.
|
|
}
|
|
|
|
int main(int argc, char const *argv[]) {
|
|
int A1 = a(1); // a(1) -> b(1) -> c(1)
|
|
int B2 = b(2); // b(2) -> c(2)
|
|
int A3 = a(3); // a(3) -> c(3)
|
|
return 0;
|
|
}
|