summaryrefslogtreecommitdiffstats
path: root/clang/test/InterfaceStubs/object.cpp
diff options
context:
space:
mode:
authorPuyan Lotfi <puyan@puyan.org>2019-10-08 15:23:14 +0000
committerPuyan Lotfi <puyan@puyan.org>2019-10-08 15:23:14 +0000
commitc382d03ca85d0c93b3e49949006e42314b9d4409 (patch)
tree066d3effc16bbf439fd1c5d14f2673320a85c474 /clang/test/InterfaceStubs/object.cpp
parent08daf8cf0a554990caa8a559053c12e41af52dd2 (diff)
downloadbcm5719-llvm-c382d03ca85d0c93b3e49949006e42314b9d4409.tar.gz
bcm5719-llvm-c382d03ca85d0c93b3e49949006e42314b9d4409.zip
[clang][ifs] Clang Interface Stubs ToolChain plumbing.
Second Landing Attempt: This patch enables end to end support for generating ELF interface stubs directly from clang. Now the following: clang -emit-interface-stubs -o libfoo.so a.cpp b.cpp c.cpp will product an ELF binary with visible symbols populated. Visibility attributes and -fvisibility can be used to control what gets populated. * Adding ToolChain support for clang Driver IFS Merge Phase * Implementing a default InterfaceStubs Merge clang Tool, used by ToolChain * Adds support for the clang Driver to involve llvm-ifs on ifs files. * Adds -emit-merged-ifs flag, to tell llvm-ifs to emit a merged ifs text file instead of the final object format (normally ELF) Differential Revision: https://reviews.llvm.org/D63978 llvm-svn: 374061
Diffstat (limited to 'clang/test/InterfaceStubs/object.cpp')
-rw-r--r--clang/test/InterfaceStubs/object.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/clang/test/InterfaceStubs/object.cpp b/clang/test/InterfaceStubs/object.cpp
deleted file mode 100644
index 7f11fe6bf3c..00000000000
--- a/clang/test/InterfaceStubs/object.cpp
+++ /dev/null
@@ -1,14 +0,0 @@
-// REQUIRES: x86-registered-target
-// RUN: %clang -target x86_64-unknown-linux-gnu -o - -emit-interface-stubs \
-// RUN: -interface-stub-version=experimental-ifs-v1 %s | \
-// RUN: FileCheck -check-prefix=CHECK-TAPI %s
-
-// RUN: %clang -target x86_64-unknown-linux-gnu -o - -emit-interface-stubs \
-// RUN: -interface-stub-version=experimental-ifs-v1 %s | \
-// RUN: FileCheck -check-prefix=CHECK-SYMBOLS %s
-// RUN: %clang -target x86_64-unknown-linux-gnu -o - -c %s | llvm-nm - 2>&1 | \
-// RUN: FileCheck -check-prefix=CHECK-SYMBOLS %s
-
-// CHECK-TAPI: data: { Type: Object, Size: 4 }
-// CHECK-SYMBOLS: data
-int data = 42;
OpenPOWER on IntegriCloud