diff options
author | Denis Steckelmacher <steckdenis@yahoo.fr> | 2011-08-22 18:17:07 +0200 |
---|---|---|
committer | Denis Steckelmacher <steckdenis@yahoo.fr> | 2011-08-22 18:17:07 +0200 |
commit | a8b08f250ef66e9c7780787cec9389a1a655fb27 (patch) | |
tree | 81e1d5b5dac6cbe750acadfa72f07773b88136d5 | |
parent | f00e6edf208fa61a2c5a7c3885eb2c639cf108c5 (diff) |
Remove clcompiler.cpp, this file isn't used.
-rw-r--r-- | src/tools/CMakeLists.txt | 23 | ||||
-rw-r--r-- | src/tools/clcompiler.cpp | 54 |
2 files changed, 0 insertions, 77 deletions
diff --git a/src/tools/CMakeLists.txt b/src/tools/CMakeLists.txt deleted file mode 100644 index 2895f29..0000000 --- a/src/tools/CMakeLists.txt +++ /dev/null @@ -1,23 +0,0 @@ -include_directories (${Coal_SOURCE_DIR}/include - ${Coal_SOURCE_DIR}/src/tools - ${Coal_SOURCE_DIR}/src/compiler - ${LLVM_INCLUDE_DIR} - ${CLANG_INCLUDE_DIRS}) - -set(COMPILER_SRC_FILES - clcompiler.cpp) - -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti") - -link_directories(${Coal_BINARY_DIR}/src) - -set_source_files_properties( ${COMPILER_SRC_FILES} - PROPERTIES COMPILE_FLAGS ${LLVM_COMPILE_FLAGS}) - -add_executable(clcompiler ${COMPILER_SRC_FILES} ${Coal_SOURCE_DIR}/src/compiler) - -set_target_properties(clcompiler - PROPERTIES LINK_FLAGS ${LLVM_LDFLAGS}) - -target_link_libraries(clcompiler OpenCL ${CLANG_LIBS} - ${LLVM_LIBS_CORE}) diff --git a/src/tools/clcompiler.cpp b/src/tools/clcompiler.cpp deleted file mode 100644 index 4b8d63c..0000000 --- a/src/tools/clcompiler.cpp +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2011, Denis Steckelmacher <steckdenis@yahoo.fr> - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of the copyright holder nor the - * names of its contributors may be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include "compiler.h" - -#include <iostream> -#include <fstream> - -static -void usage(const char *progName) -{ - std::cout << "Usage: " << progName << " file.cl" << std::endl; -} - -int main(int argc, char **argv) -{ - Coal::Compiler compiler; - - if (argc < 2) { - usage(argv[0]); - return 1; - } - std::ifstream stream(argv[1]); - std::string contents((std::istreambuf_iterator<char>(stream)), - std::istreambuf_iterator<char>()); - - compiler.compile(contents); - - return 0; -} |