summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2018-02-20 20:21:53 +0000
committerTeresa Johnson <tejohnson@google.com>2018-02-20 20:21:53 +0000
commita344fd3db6fa900fcca59e4fd3fb02f1bb6e00e1 (patch)
tree2f4abb27e4a9701c7871be8ec441b1cc5afd0afa /llvm/lib
parentb145cca85e97788d02aca7b47276d845c5c3d266 (diff)
downloadbcm5719-llvm-a344fd3db6fa900fcca59e4fd3fb02f1bb6e00e1.tar.gz
bcm5719-llvm-a344fd3db6fa900fcca59e4fd3fb02f1bb6e00e1.zip
[LTO] Remove unused Path parameter to AddBufferFn
Summary: With D43396, no clients use the Path parameter anymore. Depends on D43396. Reviewers: pcc Subscribers: mehdi_amini, inglorion, llvm-commits Differential Revision: https://reviews.llvm.org/D43400 llvm-svn: 325619
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/LTO/Caching.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/LTO/Caching.cpp b/llvm/lib/LTO/Caching.cpp
index dd47eb584b7..22bc82f7ba0 100644
--- a/llvm/lib/LTO/Caching.cpp
+++ b/llvm/lib/LTO/Caching.cpp
@@ -36,7 +36,7 @@ Expected<NativeObjectCache> lto::localCache(StringRef CacheDirectoryPath,
ErrorOr<std::unique_ptr<MemoryBuffer>> MBOrErr =
MemoryBuffer::getFile(EntryPath);
if (MBOrErr) {
- AddBuffer(Task, std::move(*MBOrErr), EntryPath);
+ AddBuffer(Task, std::move(*MBOrErr));
return AddStreamFn();
}
@@ -103,7 +103,7 @@ Expected<NativeObjectCache> lto::localCache(StringRef CacheDirectoryPath,
TempFile.TmpName + " to " + EntryPath + ": " +
toString(std::move(E)) + "\n");
- AddBuffer(Task, std::move(*MBOrErr), EntryPath);
+ AddBuffer(Task, std::move(*MBOrErr));
}
};
OpenPOWER on IntegriCloud