Fix parameter ordering bug in createDebugIRPass()
authorDaniel Malea <daniel.malea@intel.com>
Tue, 30 Jul 2013 16:16:11 +0000 (16:16 +0000)
committerDaniel Malea <daniel.malea@intel.com>
Tue, 30 Jul 2013 16:16:11 +0000 (16:16 +0000)
- Thanks to Ilia Filippov for pointing out the inconsistency!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187424 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Transforms/Instrumentation.h

index de397af5bd0f9976eece4bf0277a503f650a1d65..d1b6fe103ce1e09eee33710304e7898ae49c91a2 100644 (file)
@@ -91,12 +91,12 @@ FunctionPass *createBoundsCheckingPass();
 ///
 /// @param HideDebugIntrinsics  Omit debug intrinsics in emitted IR source file.
 /// @param HideDebugMetadata    Omit debug metadata in emitted IR source file.
-/// @param Filename             Embed this file name in the debug information.
 /// @param Directory            Embed this directory in the debug information.
+/// @param Filename             Embed this file name in the debug information.
 ModulePass *createDebugIRPass(bool HideDebugIntrinsics,
                               bool HideDebugMetadata,
-                              StringRef Filename = StringRef(),
-                              StringRef Directory = StringRef());
+                              StringRef Directory = StringRef(),
+                              StringRef Filename = StringRef());
 
 /// createDebugIRPass - Enable interactive stepping through LLVM IR in LLDB
 ///                     (or GDB) with an existing IR file on disk. When creating