[PATCH] [ms-coff] Add a test for proper handling of full Windows path names in the .drectve section
Ehsan Akhgari
ehsan.akhgari at gmail.com
Tue Jul 8 16:50:10 PDT 2014
Hi rafael,
This test ensures that we can correctly specify a full Windows path to the clang ASAN runtime libraries. This is in preparation to fix PR20246.
http://reviews.llvm.org/D4427
Files:
test/MC/COFF/linker-options.ll
Index: test/MC/COFF/linker-options.ll
===================================================================
--- test/MC/COFF/linker-options.ll
+++ test/MC/COFF/linker-options.ll
@@ -5,6 +5,7 @@
metadata !{ metadata !"/DEFAULTLIB:msvcrt.lib" },
metadata !{ metadata !"/DEFAULTLIB:msvcrt.lib",
metadata !"/DEFAULTLIB:secur32.lib" },
+ metadata !{ metadata !"/DEFAULTLIB:C:\5Cpath to\5Casan_rt.lib" },
metadata !{ metadata !"/with spaces" } } }
!llvm.module.flags = !{ !0 }
@@ -17,5 +18,6 @@
; CHECK: .ascii " /DEFAULTLIB:msvcrt.lib"
; CHECK: .ascii " /DEFAULTLIB:msvcrt.lib"
; CHECK: .ascii " /DEFAULTLIB:secur32.lib"
+; CHECK: .ascii " \"/DEFAULTLIB:C:\\path to\\asan_rt.lib\""
; CHECK: .ascii " \"/with spaces\""
; CHECK: .ascii " /EXPORT:_foo"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4427.11174.patch
Type: text/x-patch
Size: 808 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140708/ab10f26b/attachment.bin>
More information about the llvm-commits
mailing list