summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-04-11 14:06:34 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-04-11 14:06:34 +0000
commitcd848c0866cffc70f97b65689b269a1441ee48d0 (patch)
tree8b3ac5ae15ba65d78b72e370190b8c177d5a9ddb /llvm/include
parent9643a313ac976716f0893159f7d9d8c0bde7da63 (diff)
downloadbcm5719-llvm-cd848c0866cffc70f97b65689b269a1441ee48d0.tar.gz
bcm5719-llvm-cd848c0866cffc70f97b65689b269a1441ee48d0.zip
Add a function to check if an argument list is too long.
This will be used in clang to decide if it should create an @file or not. It will be tested on the clang side. Patch by Nathan Froyd. llvm-svn: 179285
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Support/Program.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/Support/Program.h b/llvm/include/llvm/Support/Program.h
index bf650112f28..fb177de97b4 100644
--- a/llvm/include/llvm/Support/Program.h
+++ b/llvm/include/llvm/Support/Program.h
@@ -14,6 +14,7 @@
#ifndef LLVM_SUPPORT_PROGRAM_H
#define LLVM_SUPPORT_PROGRAM_H
+#include "llvm/ADT/ArrayRef.h"
#include "llvm/Support/Path.h"
namespace llvm {
@@ -140,6 +141,10 @@ namespace sys {
/// @}
};
+
+ // Return true if the given arguments fit within system-specific
+ // argument length limits.
+ bool argumentsFitWithinSystemLimits(ArrayRef<const char*> Args);
}
}
OpenPOWER on IntegriCloud