From bb37ef656b48bc70f5e65130b625d6ab52988946 Mon Sep 17 00:00:00 2001 From: kai Date: Sat, 29 Jun 2013 15:25:34 +0200 Subject: [PATCH] Replace llvm::sys::Path with llvm::SmallString in gen_gccbuiltins.cpp. --- utils/gen_gccbuiltins.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/utils/gen_gccbuiltins.cpp b/utils/gen_gccbuiltins.cpp index de309440..cd59a2a9 100644 --- a/utils/gen_gccbuiltins.cpp +++ b/utils/gen_gccbuiltins.cpp @@ -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];