teak-llvm/llvm/tools/opt-remarks/liboptremarks.cpp
Francis Visoiu Mistrih 2ae1be726a [CMake] Expose opt-remark tooling through libOptRemarks.dylib
* Create an install target for it
* Add it under tools/opt-remarks
* Add an export file for the dylib
* Install the llvm-c/OptRemarks.h header
* Add an API to query its version

rdar://45458839

llvm-svn: 346127
2018-11-05 11:57:44 +00:00

19 lines
598 B
C++

//===-liboptremarks.cpp - LLVM Opt-Remarks Shared Library -----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// Provide a library to work with optimization remarks.
//
//===----------------------------------------------------------------------===//
#include "llvm-c/OptRemarks.h"
extern uint32_t LLVMOptRemarkVersion(void) {
return OPT_REMARKS_API_VERSION;
}