mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-25 05:27:15 +00:00
dd65b7a9f5
This lets us make guesses about symbols in third party DLLs without debug info, like MSVCR120.dll or kernel32.dll. dbghelp does the same thing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250582 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
338 B
C++
20 lines
338 B
C++
// To generate the corresponding EXE, run:
|
|
// clang-cl -MD -O2 -gdwarf -c coff-dwarf.cpp && lld-link -debug coff-dwarf.obj
|
|
|
|
extern "C" int puts(const char *str);
|
|
|
|
void __declspec(noinline) foo() {
|
|
puts("foo1");
|
|
puts("foo2");
|
|
}
|
|
|
|
// LLVM should inline this into main.
|
|
static void bar() {
|
|
foo();
|
|
}
|
|
|
|
int main() {
|
|
bar();
|
|
return 0;
|
|
}
|