mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 08:26:06 +00:00

in such a case just write out a reference of a previously serialized Stmt, instead of serializing it all over again. This saves memory + space + [de]serializing time, and avoids blowing up memory with pathological cases. rdar://10293911 llvm-svn: 142696
8 lines
270 B
C
8 lines
270 B
C
// Test this without pch.
|
|
// RUN: %clang_cc1 %s -include %s.h -emit-llvm -o %t.withoutpch.ll
|
|
|
|
// Test with pch.
|
|
// RUN: %clang_cc1 %s.h -emit-pch -o %t.pch
|
|
// RUN: %clang_cc1 %s -include-pch %t.pch -emit-llvm -o %t.withpch.ll
|
|
// RUN: diff %t.withoutpch.ll %t.withpch.ll
|