mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-30 23:20:40 +03:00
Replace llvm::sys::Path with llvm::SmallString in gen_gccbuiltins.cpp.
This commit is contained in:
parent
8fb0b12e9e
commit
bb37ef656b
1 changed files with 6 additions and 5 deletions
|
@ -14,9 +14,10 @@
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm/TableGen/Main.h"
|
||||
#include "llvm/ADT/SmallString.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/PathV1.h"
|
||||
#include "llvm/Support/Path.h"
|
||||
#include "llvm/TableGen/Record.h"
|
||||
#if LDC_LLVM_VER < 302
|
||||
#include "llvm/TableGen/TableGenAction.h"
|
||||
|
@ -171,12 +172,12 @@ int main(int argc, char** argv)
|
|||
return 1;
|
||||
}
|
||||
|
||||
sys::Path file(LLVM_INTRINSIC_TD_PATH);
|
||||
file.appendComponent("llvm");
|
||||
llvm::SmallString<128> file(LLVM_INTRINSIC_TD_PATH);
|
||||
sys::path::append(file, "llvm");
|
||||
#if LDC_LLVM_VER >= 303
|
||||
file.appendComponent("IR");
|
||||
sys::path::append(file, "IR");
|
||||
#endif
|
||||
file.appendComponent("Intrinsics.td");
|
||||
sys::path::append(file, "Intrinsics.td");
|
||||
|
||||
string iStr = string("-I=") + string(LLVM_INTRINSIC_TD_PATH);
|
||||
string oStr = string("-o=") + argv[1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue