diff options
| author | Teresa Johnson <tejohnson@google.com> | 2016-03-30 18:15:08 +0000 |
|---|---|---|
| committer | Teresa Johnson <tejohnson@google.com> | 2016-03-30 18:15:08 +0000 |
| commit | 83c517c44eb3087b284ee73c49decb7aaf38e273 (patch) | |
| tree | 057d5dfded82a215d44efe9296e81b6d4f4bf731 /llvm/test/Assembler | |
| parent | a7c5e1922dd290336849cb59377b92150e700331 (diff) | |
| download | bcm5719-llvm-83c517c44eb3087b284ee73c49decb7aaf38e273.tar.gz bcm5719-llvm-83c517c44eb3087b284ee73c49decb7aaf38e273.zip | |
Restore "[ThinLTO] Serialize the Module SourceFileName to/from LLVM assembly"
This restores commit 264869, with a fix for windows bots to properly
escape '\' in the path when serializing out. Added test.
llvm-svn: 264884
Diffstat (limited to 'llvm/test/Assembler')
| -rw-r--r-- | llvm/test/Assembler/source-filename-backslash.ll | 8 | ||||
| -rw-r--r-- | llvm/test/Assembler/source-filename.ll | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/Assembler/source-filename-backslash.ll b/llvm/test/Assembler/source-filename-backslash.ll new file mode 100644 index 00000000000..27b51986567 --- /dev/null +++ b/llvm/test/Assembler/source-filename-backslash.ll @@ -0,0 +1,8 @@ + +; Make sure that llvm-as/llvm-dis properly assemble/disassemble the +; source_filename. + +; RUN: llvm-as < %s | llvm-dis | FileCheck %s + +; CHECK: source_filename = "C:\\path\\with\\backslashes\\test.cc" +source_filename = "C:\\path\\with\\backslashes\\test.cc" diff --git a/llvm/test/Assembler/source-filename.ll b/llvm/test/Assembler/source-filename.ll new file mode 100644 index 00000000000..11284fad1ea --- /dev/null +++ b/llvm/test/Assembler/source-filename.ll @@ -0,0 +1,8 @@ + +; Make sure that llvm-as/llvm-dis properly assemble/disassemble the +; source_filename. + +; RUN: llvm-as < %s | llvm-dis | FileCheck %s + +; CHECK: source_filename = "test.cc" +source_filename = "test.cc" |

