mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-07 16:54:48 +00:00
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
29 lines
777 B
C++
29 lines
777 B
C++
//===--- Tools.cpp - The LLVM Compiler Driver -------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open
|
|
// Source License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// Auto-generated tool descriptions - implementation.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "AutoGenerated.h"
|
|
#include "CompilationGraph.h"
|
|
#include "Tool.h"
|
|
|
|
#include "llvm/ADT/StringExtras.h"
|
|
#include "llvm/Support/CommandLine.h"
|
|
|
|
#include <cstdlib>
|
|
#include <stdexcept>
|
|
|
|
using namespace llvm;
|
|
using namespace llvmc;
|
|
|
|
// The auto-generated file
|
|
#include "AutoGenerated.inc"
|