summaryrefslogtreecommitdiff
path: root/tools/llvmc2
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2008-05-30 06:12:24 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2008-05-30 06:12:24 +0000
commit08bd2e74dc542ab4e7484f1d61e22f6fd96c48ed (patch)
treea63cd3e3b53ababa63827911f79bd63aa1768b98 /tools/llvmc2
parent4eaa389519d3afa02db7e2e66c9544e17e2122e7 (diff)
downloadllvm-08bd2e74dc542ab4e7484f1d61e22f6fd96c48ed.tar.gz
llvm-08bd2e74dc542ab4e7484f1d61e22f6fd96c48ed.tar.bz2
llvm-08bd2e74dc542ab4e7484f1d61e22f6fd96c48ed.tar.xz
Add support for user-provided hooks and environment variable reads to the cmd_line tool property.
Used like this: (cmd_line "$CALL(MyHook) --option -o $ENV(VARIABLE) $CALL(AnotherHook)") Also works with case expressions. Hook declarations are auto-generated, the definitions should be provided by the user (just drop a .cpp file in the tools/llvmc2 directory). Hooks should live in the "hooks" namespace and have type std::string hooks::Hook(void). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51732 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc2')
-rw-r--r--tools/llvmc2/AutoGenerated.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/llvmc2/AutoGenerated.cpp b/tools/llvmc2/AutoGenerated.cpp
index e01702653a..e240fee159 100644
--- a/tools/llvmc2/AutoGenerated.cpp
+++ b/tools/llvmc2/AutoGenerated.cpp
@@ -18,6 +18,7 @@
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/CommandLine.h"
+#include <cstdlib>
#include <stdexcept>
using namespace llvm;