diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-04-20 20:50:13 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-04-20 20:50:13 +0000 |
commit | 3222b9be0472bb72e1574d8d85bdc712aa8b84fa (patch) | |
tree | 58364f8692dea0fcaf08df33e15247a1502a3144 /llvm/lib/System/Unix/Memory.inc | |
parent | e84a9daa1614b2b140283015a7308a518188b8c8 (diff) | |
download | bcm5719-llvm-3222b9be0472bb72e1574d8d85bdc712aa8b84fa.tar.gz bcm5719-llvm-3222b9be0472bb72e1574d8d85bdc712aa8b84fa.zip |
Make Unix.h:MakeErrMsg separate the prefix and errno string, so we get:
clang: error: unable to make temporary file: /etc/cc: can't make
unique filename: Permission denied
instead of
clang: error: unable to make temporary file: /etc/cc: can't make
unique filenamePermission denied
for example.
Also, audited the uses of MakeErrMsg to make the prefix strings
consistent (not end with newline/punctuation/space/": ").
llvm-svn: 69626
Diffstat (limited to 'llvm/lib/System/Unix/Memory.inc')
-rw-r--r-- | llvm/lib/System/Unix/Memory.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/System/Unix/Memory.inc b/llvm/lib/System/Unix/Memory.inc index cfc5a6871dc..b7a70135bcb 100644 --- a/llvm/lib/System/Unix/Memory.inc +++ b/llvm/lib/System/Unix/Memory.inc @@ -76,7 +76,7 @@ llvm::sys::Memory::AllocateRWX(unsigned NumBytes, const MemoryBlock* NearBlock, (vm_size_t)(pageSize*NumPages), 0, VM_PROT_READ | VM_PROT_EXECUTE | VM_PROT_COPY); if (KERN_SUCCESS != kr) { - MakeErrMsg(ErrMsg, "vm_protect max RX failed\n"); + MakeErrMsg(ErrMsg, "vm_protect max RX failed"); return sys::MemoryBlock(); } @@ -84,7 +84,7 @@ llvm::sys::Memory::AllocateRWX(unsigned NumBytes, const MemoryBlock* NearBlock, (vm_size_t)(pageSize*NumPages), 0, VM_PROT_READ | VM_PROT_WRITE); if (KERN_SUCCESS != kr) { - MakeErrMsg(ErrMsg, "vm_protect RW failed\n"); + MakeErrMsg(ErrMsg, "vm_protect RW failed"); return sys::MemoryBlock(); } #endif |