summaryrefslogtreecommitdiff
path: root/include/llvm/Support/Program.h
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
commit845a932af74ecbd2a20af5751dd61fa8cf2246f5 (patch)
tree2798ed9fdf58bc3ed72a9afa5bc4cc0e4644b07d /include/llvm/Support/Program.h
parent305e3b277c5e721431e60808293a9228c62e319e (diff)
downloadllvm-845a932af74ecbd2a20af5751dd61fa8cf2246f5.tar.gz
llvm-845a932af74ecbd2a20af5751dd61fa8cf2246f5.tar.bz2
llvm-845a932af74ecbd2a20af5751dd61fa8cf2246f5.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179285 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Program.h')
-rw-r--r--include/llvm/Support/Program.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Support/Program.h b/include/llvm/Support/Program.h
index bf650112f2..fb177de97b 100644
--- a/include/llvm/Support/Program.h
+++ b/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);
}
}