diff options
| author | David Blaikie <dblaikie@gmail.com> | 2014-07-02 18:30:05 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2014-07-02 18:30:05 +0000 |
| commit | a8c3509ffe367d002f0f5d25849567a4e125a5c4 (patch) | |
| tree | 0de0d697d5c5cde20e712a61353730f4b58b96cf /llvm/lib/Transforms/IPO/ArgumentPromotion.cpp | |
| parent | de58870394099c89187a3b8fde15cb0177b7172d (diff) | |
| download | bcm5719-llvm-a8c3509ffe367d002f0f5d25849567a4e125a5c4.tar.gz bcm5719-llvm-a8c3509ffe367d002f0f5d25849567a4e125a5c4.zip | |
Constify the Function pointers in the result of makeSubprogramMap
These don't need to be mutable and callers being added soon in CodeGen
won't have access to non-const Module&.
llvm-svn: 212202
Diffstat (limited to 'llvm/lib/Transforms/IPO/ArgumentPromotion.cpp')
| -rw-r--r-- | llvm/lib/Transforms/IPO/ArgumentPromotion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp index 2e89a252a8e..97a119b01bc 100644 --- a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp +++ b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp @@ -84,7 +84,7 @@ namespace { bool doInitialization(CallGraph &CG) override; /// The maximum number of elements to expand, or 0 for unlimited. unsigned maxElements; - DenseMap<Function *, DISubprogram> FunctionDIs; + DenseMap<const Function *, DISubprogram> FunctionDIs; }; } |

