blob: dd9fe7c979d161f5cb9a73e557c1c86ac59ec4f0 [file] [log] [blame]
Shankar Easwaran34ab70f2013-02-07 20:16:12 +00001//===- Passes/LayoutPass.cpp - Layout atoms -------------------------------===//
2//
3// The LLVM Linker
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//===----------------------------------------------------------------------===//
10
Michael J. Spencer7f09a3d2013-02-26 01:35:30 +000011#define DEBUG_TYPE "LayoutPass"
12
Shankar Easwaran34ab70f2013-02-07 20:16:12 +000013#include "lld/Passes/LayoutPass.h"
Nick Kledzikc314b462013-04-04 18:59:24 +000014#include "llvm/Support/Debug.h"
Shankar Easwaran34ab70f2013-02-07 20:16:12 +000015
Michael J. Spencer7f09a3d2013-02-26 01:35:30 +000016#include "llvm/Support/Debug.h"
17
Shankar Easwaran34ab70f2013-02-07 20:16:12 +000018using namespace lld;
19
20/// The function compares atoms by sorting atoms in the following order
21/// a) Sorts atoms with the same permissions
22/// b) Sorts atoms with the same content Type
23/// c) Sorts atoms by Section position preference
24/// d) Sorts atoms by how they follow / precede each atom
25/// e) Sorts atoms on how they appear using File Ordinality
26/// f) Sorts atoms on how they appear within the File
27bool LayoutPass::CompareAtoms::operator()(const DefinedAtom *left,
28 const DefinedAtom *right) {
Michael J. Spencer7f09a3d2013-02-26 01:35:30 +000029 DEBUG(llvm::dbgs() << "Sorting " << left->name() << " " << right->name() << "\n");
Shankar Easwaran34ab70f2013-02-07 20:16:12 +000030 if (left == right)
31 return false;
32
33 // Sort same permissions together.
34 DefinedAtom::ContentPermissions leftPerms = left->permissions();
35 DefinedAtom::ContentPermissions rightPerms = right->permissions();
Shankar Easwaran8c256852013-03-13 04:05:38 +000036
37 DEBUG(llvm::dbgs() << "Sorting by contentPerms"
38 << "(" << leftPerms << "," << rightPerms << ")\n");
39
Shankar Easwaran34ab70f2013-02-07 20:16:12 +000040 if (leftPerms != rightPerms)
41 return leftPerms < rightPerms;
42
43 // Sort same content types together.
44 DefinedAtom::ContentType leftType = left->contentType();
45 DefinedAtom::ContentType rightType = right->contentType();
Shankar Easwaran8c256852013-03-13 04:05:38 +000046
47 DEBUG(llvm::dbgs() << "Sorting by contentType"
48 << "(" << leftType << "," << rightType << ")\n");
49
Shankar Easwaran34ab70f2013-02-07 20:16:12 +000050 if (leftType != rightType)
51 return leftType < rightType;
52
53 // TO DO: Sort atoms in customs sections together.
54
55 // Sort by section position preference.
56 DefinedAtom::SectionPosition leftPos = left->sectionPosition();
57 DefinedAtom::SectionPosition rightPos = right->sectionPosition();
Shankar Easwaran8c256852013-03-13 04:05:38 +000058
59 DEBUG(llvm::dbgs() << "Sorting by sectionPos"
60 << "(" << leftPos << "," << rightPos << ")\n");
61
Shankar Easwaran34ab70f2013-02-07 20:16:12 +000062 bool leftSpecialPos = (leftPos != DefinedAtom::sectionPositionAny);
63 bool rightSpecialPos = (rightPos != DefinedAtom::sectionPositionAny);
64 if (leftSpecialPos || rightSpecialPos) {
65 if (leftPos != rightPos)
66 return leftPos < rightPos;
67 }
68
Michael J. Spencer7f09a3d2013-02-26 01:35:30 +000069 DEBUG(llvm::dbgs() << "Sorting by override\n");
70
Shankar Easwaran34ab70f2013-02-07 20:16:12 +000071 AtomToOrdinalT::const_iterator lPos = _layout._ordinalOverrideMap.find(left);
72 AtomToOrdinalT::const_iterator rPos = _layout._ordinalOverrideMap.find(right);
73 AtomToOrdinalT::const_iterator end = _layout._ordinalOverrideMap.end();
74 if (lPos != end) {
75 if (rPos != end) {
76 // both left and right are overridden, so compare overridden ordinals
Michael J. Spencer7f09a3d2013-02-26 01:35:30 +000077 if (lPos->second != rPos->second)
78 return lPos->second < rPos->second;
Shankar Easwaran34ab70f2013-02-07 20:16:12 +000079 } else {
80 // left is overridden and right is not, so left < right
81 return true;
82 }
83 } else {
84 if (rPos != end) {
85 // right is overridden and left is not, so right < left
86 return false;
87 } else {
Shankar Easwaran8962feb2013-03-14 16:09:49 +000088 // neither are overridden,
Shankar Easwaran34ab70f2013-02-07 20:16:12 +000089 // fall into default sorting below
90 }
91 }
92
93 // Sort by .o order.
94 const File *leftFile = &left->file();
95 const File *rightFile = &right->file();
Shankar Easwaran8c256852013-03-13 04:05:38 +000096
97 DEBUG(llvm::dbgs()
98 << "Sorting by .o order("
99 << "(" << leftFile->ordinal() << "," << rightFile->ordinal() << ")"
100 << "[" << leftFile->path() << "," << rightFile->path() << "]\n");
101
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000102 if (leftFile != rightFile)
103 return leftFile->ordinal() < rightFile->ordinal();
104
105 // Sort by atom order with .o file.
106 uint64_t leftOrdinal = left->ordinal();
107 uint64_t rightOrdinal = right->ordinal();
Shankar Easwaran8c256852013-03-13 04:05:38 +0000108
109 DEBUG(llvm::dbgs() << "Sorting by ordinal(" << left->ordinal() << ","
110 << right->ordinal() << ")\n");
111
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000112 if (leftOrdinal != rightOrdinal)
113 return leftOrdinal < rightOrdinal;
114
Michael J. Spencer7f09a3d2013-02-26 01:35:30 +0000115 DEBUG(llvm::dbgs() << "Unordered\n");
116
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000117 return false;
118}
119
120/// This pass builds the followon tables described by two DenseMaps
121/// followOnRoots and followonNexts.
122/// The followOnRoots map contains a mapping of a DefinedAtom to its root
123/// The followOnNexts map contains a mapping of what DefinedAtom follows the
124/// current Atom
125/// The algorithm follows a very simple approach
126/// a) If the atom is first seen, then make that as the root atom
Shankar Easwaran8962feb2013-03-14 16:09:49 +0000127/// b) The targetAtom which this Atom contains, has the root thats set to the
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000128/// root of the current atom
129/// c) If the targetAtom is part of a different tree and the root of the
130/// targetAtom is itself, Chain all the atoms that are contained in the tree
131/// to the current Tree
132/// d) If the targetAtom is part of a different chain and the root of the
133/// targetAtom until the targetAtom has all atoms of size 0, then chain the
134/// targetAtoms and its tree to the current chain
135void LayoutPass::buildFollowOnTable(MutableFile::DefinedAtomRange &range) {
136 for (auto ai : range) {
137 for (const Reference *r : *ai) {
138 if (r->kind() == lld::Reference::kindLayoutAfter) {
139 const DefinedAtom *targetAtom = llvm::dyn_cast<DefinedAtom>(r->target());
140 _followOnNexts[ai] = targetAtom;
141 // If we find a followon for the first time, lets make that
142 // atom as the root atom
143 if (_followOnRoots.count(ai) == 0) {
144 _followOnRoots[ai] = ai;
145 }
Shankar Easwaran8962feb2013-03-14 16:09:49 +0000146 // If the targetAtom is not a root of any chain, lets make
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000147 // the root of the targetAtom to the root of the current chain
148 auto iter = _followOnRoots.find(targetAtom);
149 if (iter == _followOnRoots.end()) {
Michael J. Spencer52fdb8b2013-03-09 01:41:27 +0000150 auto tmp = _followOnRoots[ai];
151 _followOnRoots[targetAtom] = tmp;
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000152 } else {
153 // The followon is part of another chain
154 if (iter->second == targetAtom) {
155 const DefinedAtom *a = targetAtom;
156 while (true) {
157 _followOnRoots[a] = _followOnRoots[ai];
158 // Set all the follow on's for the targetAtom to be
159 // the current root
160 AtomToAtomT::iterator targetFollowOnAtomsIter =
161 _followOnNexts.find(a);
162
163 if (targetFollowOnAtomsIter != _followOnNexts.end())
164 a = targetFollowOnAtomsIter->second;
165 else
166 break;
167 } // while true
168 } else { // the atom could be part of chain already
169 // Get to the root of the chain
170 const DefinedAtom *a = _followOnRoots[targetAtom];
Shankar Easwaranc44bc342013-03-06 21:59:27 +0000171 const DefinedAtom *targetPrevAtom = nullptr;
172
Shankar Easwaran8962feb2013-03-14 16:09:49 +0000173 // If the size of the atom is 0, and the target
Shankar Easwaranc44bc342013-03-06 21:59:27 +0000174 // is already part of a chain, lets bring the current
175 // atom into the chain
176 size_t currentAtomSize = (*ai).size();
177
Shankar Easwaran8962feb2013-03-14 16:09:49 +0000178 // Lets add to the chain only if the atoms that
179 // appear before the targetAtom in the chain
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000180 // are of size 0
181 bool foundNonZeroSizeAtom = false;
182 while (true) {
Shankar Easwaranc44bc342013-03-06 21:59:27 +0000183 targetPrevAtom = a;
184
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000185 // Set all the follow on's for the targetAtom to be
186 // the current root
187 AtomToAtomT::iterator targetFollowOnAtomsIter =
188 _followOnNexts.find(a);
189
190 if (targetFollowOnAtomsIter != _followOnNexts.end())
191 a = targetFollowOnAtomsIter->second;
192 else
193 break;
194
Shankar Easwaranc44bc342013-03-06 21:59:27 +0000195 if ((a->size() != 0) && (currentAtomSize != 0)) {
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000196 foundNonZeroSizeAtom = true;
197 break;
198 }
Shankar Easwaranc44bc342013-03-06 21:59:27 +0000199
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000200 if (a == targetAtom)
201 break;
Shankar Easwaranc44bc342013-03-06 21:59:27 +0000202
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000203 } // while true
204 if (foundNonZeroSizeAtom) {
Shankar Easwaran8962feb2013-03-14 16:09:49 +0000205 // TODO: print warning that an impossible layout
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000206 // is being desired by the user
Shankar Easwaran8962feb2013-03-14 16:09:49 +0000207 // Continue to the next atom
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000208 break;
209 }
210
Shankar Easwaranc44bc342013-03-06 21:59:27 +0000211 // If the atom is a zero sized atom, then make the target
212 // follow the zero sized atom, as the zero sized atom may be
213 // a weak symbol
214 if ((currentAtomSize == 0) && (targetPrevAtom)) {
215 _followOnNexts[targetPrevAtom] = ai;
216 _followOnRoots[ai] = _followOnRoots[targetPrevAtom];
217 _followOnNexts[ai] = targetAtom;
218 } else {
219 _followOnNexts[ai] = _followOnRoots[targetAtom];
Shankar Easwaran8962feb2013-03-14 16:09:49 +0000220 // Set the root of all atoms in the
Shankar Easwaranc44bc342013-03-06 21:59:27 +0000221 a = _followOnRoots[targetAtom];
222 while (true) {
223 _followOnRoots[a] = _followOnRoots[ai];
224 // Set all the follow on's for the targetAtom to be
225 // the current root
226 AtomToAtomT::iterator targetFollowOnAtomsIter =
227 _followOnNexts.find(a);
228 if (targetFollowOnAtomsIter != _followOnNexts.end())
229 a = targetFollowOnAtomsIter->second;
230 else
231 break;
232 } // while true
233 } // end else (currentAtomSize != 0)
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000234 } // end else
235 } // else
236 } // kindLayoutAfter
237 } // Reference
238 } // range
239}
240
241/// This pass builds the followon tables using InGroup relationships
242/// The algorithm follows a very simple approach
243/// a) If the rootAtom is not part of any root, create a new root with the
244/// as the head
245/// b) If the current Atom root is not found, then make the current atoms root
246/// point to the rootAtom
247/// c) If the root of the current Atom is itself a root of some other tree
248/// make all the atoms in the chain point to the ingroup reference
249/// d) Check to see if the current atom is part of the chain from the rootAtom
250/// if not add the atom to the chain, so that the current atom is part of the
251/// the chain where the rootAtom is in
252void LayoutPass::buildInGroupTable(MutableFile::DefinedAtomRange &range) {
Shankar Easwaran8962feb2013-03-14 16:09:49 +0000253 // This table would convert precededby references to follow on
254 // references so that we have only one table
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000255 for (auto ai : range) {
256 for (const Reference *r : *ai) {
257 if (r->kind() == lld::Reference::kindInGroup) {
258 const DefinedAtom *rootAtom = llvm::dyn_cast<DefinedAtom>(r->target());
259 // If the root atom is not part of any root
Shankar Easwaran8962feb2013-03-14 16:09:49 +0000260 // create a new root
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000261 if (_followOnRoots.count(rootAtom) == 0) {
262 _followOnRoots[rootAtom] = rootAtom;
263 }
Shankar Easwaran8962feb2013-03-14 16:09:49 +0000264 // If the current Atom has not been seen yet and there is no root
265 // that has been set, set the root of the atom to the targetAtom
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000266 // as the targetAtom points to the ingroup root
267 auto iter = _followOnRoots.find(ai);
268 if (iter == _followOnRoots.end()) {
269 _followOnRoots[ai] = rootAtom;
270 }
271 else if (iter->second == ai) {
272 if (iter->second != rootAtom) {
273 const DefinedAtom *a = iter->second;
274 // Change all the followon next references to the ingroup reference root
275 while (true) {
276 _followOnRoots[a] = rootAtom;
277 // Set all the follow on's for the targetAtom to be
278 // the current root
279 AtomToAtomT::iterator targetFollowOnAtomsIter =
280 _followOnNexts.find(a);
281 if (targetFollowOnAtomsIter != _followOnNexts.end())
282 a = targetFollowOnAtomsIter->second;
283 else
284 break;
285 } // while true
286 }
287 }
288 else {
289 // TODO : Flag an error that the root of the tree
290 // is different, Here is an example
291 // Say there are atoms
292 // chain 1 : a->b->c
293 // chain 2 : d->e->f
294 // and e,f have their ingroup reference as a
295 // this could happen only if the root of e,f that is d
296 // has root as 'a'
297 continue;
298 }
299
300 // Check if the current atom is part of the chain
301 bool isAtomInChain = false;
302 const DefinedAtom *lastAtom = rootAtom;
303 while (true) {
Shankar Easwaran8962feb2013-03-14 16:09:49 +0000304 AtomToAtomT::iterator followOnAtomsIter =
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000305 _followOnNexts.find(lastAtom);
306 if (followOnAtomsIter != _followOnNexts.end()) {
307 lastAtom = followOnAtomsIter->second;
308 if (lastAtom == ai) {
309 isAtomInChain = true;
310 break;
311 }
312 }
Shankar Easwaran8962feb2013-03-14 16:09:49 +0000313 else
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000314 break;
315 } // findAtomInChain
316
Shankar Easwaran8962feb2013-03-14 16:09:49 +0000317 if (!isAtomInChain)
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000318 _followOnNexts[lastAtom] = ai;
319 }
320 }
321 }
322}
323
324/// This pass builds the followon tables using Preceded By relationships
325/// The algorithm follows a very simple approach
326/// a) If the targetAtom is not part of any root and the current atom is not
Shankar Easwaran8962feb2013-03-14 16:09:49 +0000327/// part of any root, create a chain with the current atom as root and
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000328/// the targetAtom as following the current atom
Shankar Easwaran8962feb2013-03-14 16:09:49 +0000329/// b) Chain the targetAtom to the current Atom if the targetAtom is not part
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000330/// of any chain and the currentAtom has no followOn's
331/// c) If the targetAtom is part of a different tree and the root of the
332/// targetAtom is itself, and if the current atom is not part of any root
Shankar Easwaran8962feb2013-03-14 16:09:49 +0000333/// chain all the atoms together
334/// d) If the current atom has no followon and the root of the targetAtom is
335/// not equal to the root of the current atom(the targetAtom is not in the
336/// same chain), chain all the atoms that are lead by the targetAtom into
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000337/// the current chain
338void LayoutPass::buildPrecededByTable(MutableFile::DefinedAtomRange &range) {
Shankar Easwaran8962feb2013-03-14 16:09:49 +0000339 // This table would convert precededby references to follow on
340 // references so that we have only one table
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000341 for (auto ai : range) {
342 for (const Reference *r : *ai) {
343 if (r->kind() == lld::Reference::kindLayoutBefore) {
344 const DefinedAtom *targetAtom = llvm::dyn_cast<DefinedAtom>(r->target());
345 // Is the targetAtom not chained
346 if (_followOnRoots.count(targetAtom) == 0) {
347 // Is the current atom not part of any root ?
348 if (_followOnRoots.count(ai) == 0) {
349 _followOnRoots[ai] = ai;
350 _followOnNexts[ai] = targetAtom;
351 _followOnRoots[targetAtom] = _followOnRoots[ai];
352 } else if (_followOnNexts.count(ai) == 0) {
353 // Chain the targetAtom to the current Atom
354 // if the currentAtom has no followon references
355 _followOnNexts[ai] = targetAtom;
356 _followOnRoots[targetAtom] = _followOnRoots[ai];
357 }
358 } else if (_followOnRoots.find(targetAtom)->second == targetAtom) {
359 // Is the targetAtom in chain with the targetAtom as the root ?
360 bool changeRoots = false;
361 if (_followOnRoots.count(ai) == 0) {
362 _followOnRoots[ai] = ai;
363 _followOnNexts[ai] = targetAtom;
364 _followOnRoots[targetAtom] = _followOnRoots[ai];
365 changeRoots = true;
366 } else if (_followOnNexts.count(ai) == 0) {
367 // Chain the targetAtom to the current Atom
368 // if the currentAtom has no followon references
369 if (_followOnRoots[ai] != _followOnRoots[targetAtom]) {
370 _followOnNexts[ai] = targetAtom;
371 _followOnRoots[targetAtom] = _followOnRoots[ai];
372 changeRoots = true;
373 }
374 }
Shankar Easwaran8962feb2013-03-14 16:09:49 +0000375 // Change the roots of the targetAtom and its chain to
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000376 // the current atoms root
377 if (changeRoots) {
378 const DefinedAtom *a = _followOnRoots[targetAtom];
379 while (true) {
380 _followOnRoots[a] = _followOnRoots[ai];
381 // Set all the follow on's for the targetAtom to be
382 // the current root
383 AtomToAtomT::iterator targetFollowOnAtomsIter =
384 _followOnNexts.find(a);
385 if (targetFollowOnAtomsIter != _followOnNexts.end())
386 a = targetFollowOnAtomsIter->second;
387 else
388 break;
389 }
390 } // changeRoots
Shankar Easwaran8962feb2013-03-14 16:09:49 +0000391 } // Is targetAtom root
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000392 } // kindLayoutBefore
393 } // Reference
394 } // atom iteration
Shankar Easwaran8962feb2013-03-14 16:09:49 +0000395} // end function
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000396
397
398/// Build an ordinal override map by traversing the followon chain, and
Shankar Easwaran8962feb2013-03-14 16:09:49 +0000399/// assigning ordinals to each atom, if the atoms have their ordinals
400/// already assigned skip the atom and move to the next. This is the
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000401/// main map thats used to sort the atoms while comparing two atoms together
402void LayoutPass::buildOrdinalOverrideMap(MutableFile::DefinedAtomRange &range) {
403 uint64_t index = 0;
404 for (auto ai : range) {
405 const DefinedAtom *atom = ai;
Michael J. Spencer1ecf8902013-03-12 00:10:00 +0000406 if (_ordinalOverrideMap.find(atom) != _ordinalOverrideMap.end())
407 continue;
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000408 AtomToAtomT::iterator start = _followOnRoots.find(atom);
409 if (start != _followOnRoots.end()) {
410 for (const DefinedAtom *nextAtom = start->second; nextAtom != NULL;
411 nextAtom = _followOnNexts[nextAtom]) {
412 AtomToOrdinalT::iterator pos = _ordinalOverrideMap.find(nextAtom);
413 if (pos == _ordinalOverrideMap.end()) {
414 _ordinalOverrideMap[nextAtom] = index++;
415 }
416 }
417 } else {
418 _ordinalOverrideMap[atom] = index;
419 }
420 }
421}
422
Shankar Easwaran8962feb2013-03-14 16:09:49 +0000423/// Perform the actual pass
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000424void LayoutPass::perform(MutableFile &mergedFile) {
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000425 MutableFile::DefinedAtomRange atomRange = mergedFile.definedAtoms();
426
427 // Build follow on tables
428 buildFollowOnTable(atomRange);
429
430 // Build Ingroup reference table
431 buildInGroupTable(atomRange);
432
433 // Build preceded by tables
434 buildPrecededByTable(atomRange);
435
436 // Build override maps
437 buildOrdinalOverrideMap(atomRange);
438
Nick Kledzikf4fa8c02013-04-04 20:32:18 +0000439 DEBUG_WITH_TYPE("layout", {
440 llvm::dbgs() << "unsorted atoms:\n";
441 for (const DefinedAtom *atom : atomRange) {
442 llvm::dbgs() << " file=" << atom->file().path()
Nick Kledzikc314b462013-04-04 18:59:24 +0000443 << ", name=" << atom->name()
444 << ", size=" << atom->size()
445 << ", type=" << atom->contentType()
446 << ", ordinal=" << atom->ordinal()
Nick Kledzikf4fa8c02013-04-04 20:32:18 +0000447 << "\n";
448 }
449 });
450
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000451 // sort the atoms
452 std::sort(atomRange.begin(), atomRange.end(), _compareAtoms);
Nick Kledzikc314b462013-04-04 18:59:24 +0000453
Nick Kledzikf4fa8c02013-04-04 20:32:18 +0000454 DEBUG_WITH_TYPE("layout", {
455 llvm::dbgs() << "sorted atoms:\n";
456 for (const DefinedAtom *atom : atomRange) {
457 llvm::dbgs() << " file=" << atom->file().path()
Nick Kledzikc314b462013-04-04 18:59:24 +0000458 << ", name=" << atom->name()
459 << ", size=" << atom->size()
460 << ", type=" << atom->contentType()
461 << ", ordinal=" << atom->ordinal()
Nick Kledzikf4fa8c02013-04-04 20:32:18 +0000462 << "\n";
463 }
464 });
465
Nick Kledzikc314b462013-04-04 18:59:24 +0000466
Shankar Easwaran34ab70f2013-02-07 20:16:12 +0000467}