diff options
author | Eli Bendersky <eli.bendersky@intel.com> | 2012-03-15 06:49:31 +0000 |
---|---|---|
committer | Eli Bendersky <eli.bendersky@intel.com> | 2012-03-15 06:49:31 +0000 |
commit | ec5fedfaeb9cf520a0bedda71f0161865e79a045 (patch) | |
tree | c3f2503e2788c72624dbb244a968c0dec814fb1b /llvm/unittests/ExecutionEngine | |
parent | df170db2f641d6ad170516bd11a146f05c3b0bf3 (diff) | |
download | bcm5719-llvm-ec5fedfaeb9cf520a0bedda71f0161865e79a045.tar.gz bcm5719-llvm-ec5fedfaeb9cf520a0bedda71f0161865e79a045.zip |
Follow-up to r152620: restore JIT event listener tests to unittest/ExecutionEngine/JIT
llvm-svn: 152780
Diffstat (limited to 'llvm/unittests/ExecutionEngine')
-rw-r--r-- | llvm/unittests/ExecutionEngine/JIT/IntelJITEventListenerTest.cpp (renamed from llvm/unittests/ExecutionEngine/IntelJITEventListenerTest.cpp) | 0 | ||||
-rw-r--r-- | llvm/unittests/ExecutionEngine/JIT/JITEventListenerTest.cpp (renamed from llvm/unittests/ExecutionEngine/JITEventListenerTest.cpp) | 0 | ||||
-rw-r--r-- | llvm/unittests/ExecutionEngine/JIT/JITEventListenerTestCommon.h (renamed from llvm/unittests/ExecutionEngine/JITEventListenerTestCommon.h) | 0 | ||||
-rw-r--r-- | llvm/unittests/ExecutionEngine/JIT/Makefile | 23 | ||||
-rw-r--r-- | llvm/unittests/ExecutionEngine/JIT/OProfileJITEventListenerTest.cpp (renamed from llvm/unittests/ExecutionEngine/OProfileJITEventListenerTest.cpp) | 0 | ||||
-rw-r--r-- | llvm/unittests/ExecutionEngine/Makefile | 27 |
6 files changed, 24 insertions, 26 deletions
diff --git a/llvm/unittests/ExecutionEngine/IntelJITEventListenerTest.cpp b/llvm/unittests/ExecutionEngine/JIT/IntelJITEventListenerTest.cpp index 8ed7a15be37..8ed7a15be37 100644 --- a/llvm/unittests/ExecutionEngine/IntelJITEventListenerTest.cpp +++ b/llvm/unittests/ExecutionEngine/JIT/IntelJITEventListenerTest.cpp diff --git a/llvm/unittests/ExecutionEngine/JITEventListenerTest.cpp b/llvm/unittests/ExecutionEngine/JIT/JITEventListenerTest.cpp index f8d88301ba1..f8d88301ba1 100644 --- a/llvm/unittests/ExecutionEngine/JITEventListenerTest.cpp +++ b/llvm/unittests/ExecutionEngine/JIT/JITEventListenerTest.cpp diff --git a/llvm/unittests/ExecutionEngine/JITEventListenerTestCommon.h b/llvm/unittests/ExecutionEngine/JIT/JITEventListenerTestCommon.h index 53608cbfce3..53608cbfce3 100644 --- a/llvm/unittests/ExecutionEngine/JITEventListenerTestCommon.h +++ b/llvm/unittests/ExecutionEngine/JIT/JITEventListenerTestCommon.h diff --git a/llvm/unittests/ExecutionEngine/JIT/Makefile b/llvm/unittests/ExecutionEngine/JIT/Makefile index f5abe75a8f6..b429033b19b 100644 --- a/llvm/unittests/ExecutionEngine/JIT/Makefile +++ b/llvm/unittests/ExecutionEngine/JIT/Makefile @@ -12,6 +12,29 @@ TESTNAME = JIT LINK_COMPONENTS := asmparser bitreader bitwriter core jit native support include $(LEVEL)/Makefile.config + +SOURCES := JITEventListenerTest.cpp + +ifeq ($(USE_INTEL_JITEVENTS), 1) + # Build the Intel JIT Events interface tests + SOURCES += IntelJITEventListenerTest.cpp + + # Add the Intel JIT Events include directory + CPPFLAGS += -I$(INTEL_JITEVENTS_INCDIR) + + # Link against the LLVM Intel JIT Evens interface library + LINK_COMPONENTS += inteljitevents +endif + +ifeq ($(USE_OPROFILE), 1) + # Build the OProfile JIT interface tests + SOURCES += OProfileJITEventListenerTest.cpp + + # Link against the LLVM oprofile interface library + LINK_COMPONENTS += oprofilejit +endif + + include $(LLVM_SRC_ROOT)/unittests/Makefile.unittest # Permit these tests to use the JIT's symbolic lookup. diff --git a/llvm/unittests/ExecutionEngine/OProfileJITEventListenerTest.cpp b/llvm/unittests/ExecutionEngine/JIT/OProfileJITEventListenerTest.cpp index 9b0ee609923..9b0ee609923 100644 --- a/llvm/unittests/ExecutionEngine/OProfileJITEventListenerTest.cpp +++ b/llvm/unittests/ExecutionEngine/JIT/OProfileJITEventListenerTest.cpp diff --git a/llvm/unittests/ExecutionEngine/Makefile b/llvm/unittests/ExecutionEngine/Makefile index ffa05be87d2..a0395cdad3b 100644 --- a/llvm/unittests/ExecutionEngine/Makefile +++ b/llvm/unittests/ExecutionEngine/Makefile @@ -10,32 +10,7 @@ LEVEL = ../.. TESTNAME = ExecutionEngine LINK_COMPONENTS := engine interpreter - -include $(LEVEL)/Makefile.config - -SOURCES := ExecutionEngineTest.cpp \ - JITEventListenerTest.cpp - -ifeq ($(USE_INTEL_JITEVENTS), 1) - # Build the Intel JIT Events interface tests - SOURCES += IntelJITEventListenerTest.cpp - - # Add the Intel JIT Events include directory - CPPFLAGS += -I$(INTEL_JITEVENTS_INCDIR) - - # Link against the LLVM Intel JIT Evens interface library - LINK_COMPONENTS += inteljitevents -endif - -ifeq ($(USE_OPROFILE), 1) - # Build the OProfile JIT interface tests - SOURCES += OProfileJITEventListenerTest.cpp - - # Link against the LLVM oprofile interface library - LINK_COMPONENTS += oprofilejit -endif - - PARALLEL_DIRS = JIT +include $(LEVEL)/Makefile.config include $(LLVM_SRC_ROOT)/unittests/Makefile.unittest |