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

This is a necessary prerequisite for debugging with modules. The .pcm files become containers that hold the serialized AST which allows us to store debug information in the module file that can be shared by all object files that were built importing the module. This reapplies r230044 with a fixed configure+make build and updated dependencies and testcase requirements. Over the last iteration this version adds - missing target requirements for testcases that specify an x86 triple, - a missing clangCodeGen.a dependency to libClang.a in the make build. rdar://problem/19104245 llvm-svn: 230423
14 lines
326 B
C
14 lines
326 B
C
// REQUIRES: x86-registered-target
|
|
// RUN: %clang -target i386-unknown-unknown -emit-ast -o %t.ast %s
|
|
// RUN: %clang -target i386-unknown-unknown -emit-llvm -S -o - %t.ast | FileCheck %s
|
|
|
|
// CHECK: module asm "foo"
|
|
__asm__("foo");
|
|
|
|
// CHECK: @g0 = common global i32 0, align 4
|
|
int g0;
|
|
|
|
// CHECK: define i32 @f0()
|
|
int f0() {
|
|
}
|