mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 16:46:08 +00:00

GCC ToT doesn't do this & it's worth about 3.2% on Clang's DWO file size with Clang. Some or all of this may be due to things like r190715 which could have source fixes/improvements, but it's not clear that's the case and that doesn't help other source bases. llvm-svn: 190716
21 lines
430 B
C++
21 lines
430 B
C++
// RUN: %clang -emit-llvm -S -g %s -o - | FileCheck %s
|
|
|
|
class MyFriend;
|
|
|
|
class SomeClass {
|
|
friend class MyFriend;
|
|
typedef int SomeType;
|
|
};
|
|
|
|
SomeClass *x;
|
|
|
|
struct MyFriend {
|
|
static void func(SomeClass::SomeType) {
|
|
}
|
|
};
|
|
|
|
// Emitting debug info for friends unnecessarily bloats debug info without any
|
|
// known benefit or debugger feature that requires it. Re-enable this is a
|
|
// use-case appears.
|
|
// CHECK-NOT: DW_TAG_friend
|