mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 01:56:05 +00:00

This reverts commit be08be5d5de97cd593fb99affa1fa994d104eb70. The build error was due to a different change, apologies!
26 lines
919 B
C++
26 lines
919 B
C++
//===- opt.cpp - The LLVM Modular Optimizer -------------------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// Optimizations may be specified an arbitrary number of times on the command
|
|
// line, They are run in the order specified.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "llvm/ADT/ArrayRef.h"
|
|
#include <functional>
|
|
|
|
namespace llvm {
|
|
class PassBuilder;
|
|
}
|
|
|
|
extern "C" int optMain(int argc, char **argv,
|
|
llvm::ArrayRef<std::function<void(llvm::PassBuilder &)>>
|
|
PassBuilderCallbacks);
|
|
|
|
int main(int argc, char **argv) { return optMain(argc, argv, {}); }
|