Skip to content

Commit

Permalink
Nuke MCAnalysis.
Browse files Browse the repository at this point in the history
The code is buggy and barely tested. It is also mostly boilerplate.
(This includes MCObjectDisassembler, which is the interface to that
functionality)

Following an IRC discussion with Jim Grosbach, it seems sensible to just
nuke the whole lot of functionality, and dig it up from VCS if
necessary (I hope not!).

All of this stuff appears to have been added in a huge patch dump (look
at the timeframe surrounding e.g. r182628) where almost every patch
seemed to be untested and not reviewed before being committed.
Post-review responses to the patches were never addressed. I don't think
any of it would have passed pre-commit review.

I doubt anyone is depending on this, since this code appears to be
extremely buggy. In limited testing that Michael Spencer and I did, we
couldn't find a single real-world object file that wouldn't crash the
CFG reconstruction stuff. The symbolizer stuff has O(n^2) behavior and
so is not much use to anyone anyway. It seemed simpler to remove them as
a whole. Most of this code is boilerplate, which is the only way it was
able to scrape by 60% coverage.

HEADSUP: Modules folks, some files I nuked were referenced from
include/llvm/module.modulemap; I just deleted the references. Hopefully
that is the right fix (one was a FIXME though!).

llvm-svn: 216983
  • Loading branch information
chisophugis committed Sep 2, 2014
1 parent 79cc1e3 commit 888320e
Show file tree
Hide file tree
Showing 31 changed files with 5 additions and 2,854 deletions.
199 changes: 0 additions & 199 deletions llvm/include/llvm/MC/MCAnalysis/MCAtom.h

This file was deleted.

142 changes: 0 additions & 142 deletions llvm/include/llvm/MC/MCAnalysis/MCFunction.h

This file was deleted.

Loading

0 comments on commit 888320e

Please sign in to comment.