mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 19:45:40 -04:00

Summary: If you're using the Microsoft ABI, chances are that you want PDBs and codeview debug info. Currently, everyone has to remember to specific -gcodeview by default, when it would be nice if the standard -g option did the right thing by default. Also, do some related cleanup of -cc1 options. When targetting the MS C++ ABI, we probably shouldn't pass -debugger-tuning=gdb. We were also passing -gcodeview twice, which is silly. Reviewers: smeenai, zturner Subscribers: aprantl, JDevlieghere, llvm-commits Differential Revision: https://reviews.llvm.org/D54499 llvm-svn: 346907
33 lines
552 B
C++
33 lines
552 B
C++
// FIXME: Check IR rather than asm, then triple is not needed.
|
|
// RUN: %clang --target=%itanium_abi_triple -g -S %s -o - | FileCheck %s
|
|
// Test to check presence of debug info for byval parameter.
|
|
// Radar 8350436.
|
|
class DAG {
|
|
public:
|
|
int i;
|
|
int j;
|
|
};
|
|
|
|
class EVT {
|
|
public:
|
|
int a;
|
|
int b;
|
|
int c;
|
|
};
|
|
|
|
class VAL {
|
|
public:
|
|
int x;
|
|
int y;
|
|
};
|
|
void foo(EVT e);
|
|
EVT bar();
|
|
|
|
void get(int *i, unsigned dl, VAL v, VAL *p, unsigned n, EVT missing_arg) {
|
|
//CHECK: .{{asciz|string}} "missing_arg"
|
|
EVT e = bar();
|
|
if (dl == n)
|
|
foo(missing_arg);
|
|
}
|
|
|