Replace llvm::sys::Path with std::string.

In many cases this is straightforward. It makes the source LLVM 3.4 compatible without using #idef's.
This commit is contained in:
kai
2013-06-29 14:20:44 +02:00
parent 7194ccff0c
commit cf88271ab9
6 changed files with 38 additions and 56 deletions

View File

@@ -14,8 +14,6 @@
#ifndef LDC_GEN_PROGRAMS_H
#define LDC_GEN_PROGRAMS_H
#if LDC_LLVM_VER >= 304
#include <string>
std::string getGcc();
@@ -25,17 +23,4 @@ std::string getArchiver();
std::string getLink();
std::string getLib();
#else
#include "llvm/Support/Path.h"
llvm::sys::Path getGcc();
llvm::sys::Path getArchiver();
// For Windows with MS tool chain
llvm::sys::Path getLink();
llvm::sys::Path getLib();
#endif
#endif