Displaying 4 results from an estimated 4 matches for "getidentifi".
Did you mean:
getidentifier
2014 Dec 03
2
[LLVMdev] [lld] need to figure out if file is an archive member and record more information...
On 12/2/2014 11:19 PM, Rui Ueyama wrote:
> Do you have to know whether a MemoryBuffer was in a library or not during
> parsing that MemoryBuffer?
Yes, I need to know that while parsing the buffer too.
>
> If not, we could just set a library name to a File in
> FileArchive::instantiateMember after we call _registry.parseFile.
>
> On Tue, Dec 2, 2014 at 9:08 PM, Shankar Easwaran
2020 Sep 27
3
How to add a new clang-tidy module
...rs.
+ Finder->addMatcher(functionDecl().bind("x"), this);
+}
+
+void M011Check::check(const MatchFinder::MatchResult &Result) {
+ // FIXME: Add callback implementation.
+ const auto *MatchedDecl = Result.Nodes.getNodeAs<FunctionDecl>("x");
+ if (!MatchedDecl->getIdentifier() || MatchedDecl->getName().startswith("awesome_"))
+ return;
+ diag(MatchedDecl->getLocation(), "function %0 is insufficiently awesome")
+ << MatchedDecl;
+ diag(MatchedDecl->getLocation(), "insert 'awesome'", DiagnosticIDs::Note)
+...
2018 Mar 02
5
Emiting linkage names for Types to Debuginfo (C++ RTTI support in GDB/LLDB)
...me in
"identifier" field: https://llvm.org/docs/LangRef.html#dicompositetype
So LLVM itself can identify types by name, the only remaining issue is to
emit it to debuginfo. That should be two lines of code in
: DwarfUnit::constructTypeDIE, something like:
StringRef LinkageName = CTy->getIdentifier();
addString(Buffer, dwarf::DW_AT_linkage_name, LinkageName);
Thanks,
Roman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180302/10e773f8/attachment.html>
2010 Jun 21
2
[LLVMdev] MC: Object file specific parsing
...+#include "llvm/ADT/Twine.h"
+#include "llvm/MC/MCParser/MachOAsmParser.h"
+#include "llvm/MC/MCContext.h"
+#include "llvm/MC/MCSymbol.h"
+
+using namespace llvm;
+
+bool MachOAsmParser::ParseDirective(AsmToken DirectiveID) {
+ StringRef IDVal = DirectiveID.getIdentifier();
+ SMLoc IDLoc = DirectiveID.getLoc();
+
+ // FIXME: This should be driven based on a hash lookup and callback.
+ if (IDVal == ".section")
+ return ParseDirectiveDarwinSection();
+
+ if (IDVal == ".zerofill")
+ return ParseDirectiveDarwinZerofill();
+ if (IDVal ==...