Move --march, --mcpu, and --mattr from JIT/TargetSelect.cpp to lli.cpp.
authorJeffrey Yasskin <jyasskin@google.com>
Fri, 5 Feb 2010 16:19:36 +0000 (16:19 +0000)
committerJeffrey Yasskin <jyasskin@google.com>
Fri, 5 Feb 2010 16:19:36 +0000 (16:19 +0000)
commit4688261c20735f5ead2f08695acdeb727db31894
tree529fc7c22add469aea913e96dca1913bc8406ded
parent63d58ebd09b8fe0b136fa87fac09d72cd4968926
Move --march, --mcpu, and --mattr from JIT/TargetSelect.cpp to lli.cpp.
llc.cpp also defined these flags, meaning that when I linked all of LLVM's
libraries into a single shared library, llc crashed on startup with duplicate
flag definitions.  This patch passes them through the EngineBuilder into
JIT::selectTarget().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95390 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ExecutionEngine/ExecutionEngine.h
lib/ExecutionEngine/ExecutionEngine.cpp
lib/ExecutionEngine/JIT/JIT.cpp
lib/ExecutionEngine/JIT/JIT.h
lib/ExecutionEngine/JIT/TargetSelect.cpp
tools/lli/lli.cpp