diff options
author | Craig Topper <craig.topper@gmail.com> | 2015-10-18 05:15:34 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2015-10-18 05:15:34 +0000 |
commit | 2626094fa136cbf4a451335975558a50e1e6fb61 (patch) | |
tree | 5090043c3fba3f98113b5480e3c920f62e383a55 /llvm/lib/Support | |
parent | 45857d4b58e5e6c2661c2c980eea6877328aca40 (diff) | |
download | bcm5719-llvm-2626094fa136cbf4a451335975558a50e1e6fb61.tar.gz bcm5719-llvm-2626094fa136cbf4a451335975558a50e1e6fb61.zip |
Make a bunch of static arrays const.
llvm-svn: 250642
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/Windows/Path.inc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/Support/Windows/Path.inc b/llvm/lib/Support/Windows/Path.inc index 839beebfcb6..30f0bb8204c 100644 --- a/llvm/lib/Support/Windows/Path.inc +++ b/llvm/lib/Support/Windows/Path.inc @@ -348,10 +348,12 @@ std::error_code equivalent(const Twine &A, const Twine &B, bool &result) { static bool isReservedName(StringRef path) { // This list of reserved names comes from MSDN, at: // http://msdn.microsoft.com/en-us/library/aa365247%28v=vs.85%29.aspx - static const char *sReservedNames[] = { "nul", "con", "prn", "aux", - "com1", "com2", "com3", "com4", "com5", "com6", - "com7", "com8", "com9", "lpt1", "lpt2", "lpt3", - "lpt4", "lpt5", "lpt6", "lpt7", "lpt8", "lpt9" }; + static const char *const sReservedNames[] = { "nul", "con", "prn", "aux", + "com1", "com2", "com3", "com4", + "com5", "com6", "com7", "com8", + "com9", "lpt1", "lpt2", "lpt3", + "lpt4", "lpt5", "lpt6", "lpt7", + "lpt8", "lpt9" }; // First, check to see if this is a device namespace, which always // starts with \\.\, since device namespaces are not legal file paths. |