This is an archive of the discontinued LLVM Phabricator instance.

[gcc compatibility]Add support for ".stabs" directive
Needs ReviewPublic

Authored by myatsina on Mar 1 2016, 8:43 AM.

Details

Reviewers
rnk
espindola
Summary

The ".stabs" has the following format:
.stabs "string",type,other,desc,value
where type, other, desc and value are numbers.

The ".stabs" directive should be emitted as is to the generated assembly. This is in compatibility with GCC.

Diff Detail

Repository
rL LLVM

Event Timeline

myatsina updated this revision to Diff 49498.Mar 1 2016, 8:43 AM
myatsina retitled this revision from to [gcc compatibility]Add support for ".stabs" directive.
myatsina updated this object.
myatsina added reviewers: rnk, rafael.
myatsina set the repository for this revision to rL LLVM.
myatsina added a subscriber: llvm-commits.
rafael edited edge metadata.Mar 1 2016, 10:56 AM

This needs a testcase.

What is the longer term objective? Do you intent to add support to the object streamer? What is still using stabs?

lib/MC/MCObjectStreamer.cpp
314

Why call an empty function?

espindola edited reviewers, added: espindola; removed: rafael.Mar 15 2018, 10:55 AM