summaryrefslogtreecommitdiffstats
path: root/lld/include
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-04-04 02:44:36 +0000
committerRui Ueyama <ruiu@google.com>2015-04-04 02:44:36 +0000
commit55f5b2b277e7abccefb8d17da02494a8dd34b128 (patch)
tree9708a22bc785131db5be7646daa465778df6ae9d /lld/include
parent3d44178733c451f12075b6527580db10ce11c50d (diff)
downloadbcm5719-llvm-55f5b2b277e7abccefb8d17da02494a8dd34b128.tar.gz
bcm5719-llvm-55f5b2b277e7abccefb8d17da02494a8dd34b128.zip
Remove a parameter for file extension from canParse.
canParse took three parameters -- file magic, filename extension and memory buffer. All but YAMLReader ignored the second parameter. This patch removes the parameter. llvm-svn: 234080
Diffstat (limited to 'lld/include')
-rw-r--r--lld/include/lld/Core/Reader.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/lld/include/lld/Core/Reader.h b/lld/include/lld/Core/Reader.h
index ddb533fb51e..1868dea04e7 100644
--- a/lld/include/lld/Core/Reader.h
+++ b/lld/include/lld/Core/Reader.h
@@ -45,10 +45,8 @@ public:
/// Sniffs the file to determine if this Reader can parse it.
/// The method is called with:
/// 1) the file_magic enumeration returned by identify_magic()
- /// 2) the file extension (e.g. ".obj")
- /// 3) the whole file content buffer if the above is not enough.
- virtual bool canParse(file_magic magic, StringRef fileExtension,
- const MemoryBuffer &mb) const = 0;
+ /// 2) the whole file content buffer if the above is not enough.
+ virtual bool canParse(file_magic magic, const MemoryBuffer &mb) const = 0;
/// \brief Parse a supplied buffer (already filled with the contents of a
/// file) and create a File object.
OpenPOWER on IntegriCloud