diff options
| author | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-06-23 13:45:33 +0000 |
|---|---|---|
| committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-06-23 13:45:33 +0000 |
| commit | 6e9e88b30aeca4239dd333c4b04b638973150f79 (patch) | |
| tree | 9eb4155660c6a226c83fad8e57f3e9a2bd038458 /clang/lib/CodeGen | |
| parent | de393329b934570e18e05f6c29fe432fbc27283c (diff) | |
| download | bcm5719-llvm-6e9e88b30aeca4239dd333c4b04b638973150f79.tar.gz bcm5719-llvm-6e9e88b30aeca4239dd333c4b04b638973150f79.zip | |
CodeGen: support linker options on Windows ARM
We would incorrectly emit the directive sections due to the missing overridden
methods. We now emit the expected "/DEFAULTLIB" rather than "-l" options for
requested linkage
llvm-svn: 273558
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/TargetInfo.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp index 0c5b2deb7eb..75283a1942c 100644 --- a/clang/lib/CodeGen/TargetInfo.cpp +++ b/clang/lib/CodeGen/TargetInfo.cpp @@ -5083,6 +5083,16 @@ public: void setTargetAttributes(const Decl *D, llvm::GlobalValue *GV, CodeGen::CodeGenModule &CGM) const override; + + void getDependentLibraryOption(llvm::StringRef Lib, + llvm::SmallString<24> &Opt) const override { + Opt = "/DEFAULTLIB:" + qualifyWindowsLibrary(Lib); + } + + void getDetectMismatchOption(llvm::StringRef Name, llvm::StringRef Value, + llvm::SmallString<32> &Opt) const override { + Opt = "/FAILIFMISMATCH:\"" + Name.str() + "=" + Value.str() + "\""; + } }; void WindowsARMTargetCodeGenInfo::setTargetAttributes( |

