mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +00:00
A certain GDB testsuite case (local.cc) has a function nested inside a class nested inside another function. GCC presents the innermost function to llvm-convert first. Heretofore, the debug info mistakenly placed the inner function at module scope. This patch walks the GCC context links and instantiates the outer class and function so the debug info is properly nested. Radar 7426545. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100530 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
513 B
C++
17 lines
513 B
C++
// RUN: %llvmgcc -g -S %s -o - | FileCheck %s
|
|
// Here, second to last argument "i32 64" indicates that artificial type is set.
|
|
// Test to artificial attribute attahed to "this" pointer type.
|
|
// Radar 7655792 and 7655002
|
|
|
|
class A {
|
|
public:
|
|
int fn1(int i) const { return i + 2; };
|
|
};
|
|
|
|
int foo() {
|
|
A a;
|
|
// Matching "i32 64, metadata !<number>} ; [ DW_TAG_pointer_type ]"
|
|
// CHECK: i32 64, metadata {{![0-9]+\} ; \[ DW_TAG_pointer_type \]}}
|
|
return a.fn1(1);
|
|
}
|